@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Session Manager API
@base https://apiexamples.vtexcommercestable.com.br
@version 1.0
@auth ApiKey vtex_session in cookie | ApiKey vtex_segment in cookie
@endpoints 4
@toc api(4)

@endpoint POST /api/sessions
@required {public: map{additionalProperties: map}}
@returns(201) {sessionToken: str, segmentToken: str}

@endpoint GET /api/sessions
@required {items: str}
@returns(200) {id: str, namespaces: map{account: map{id: map{value: str, keepAlive: bool}, accountName: map{value: str}}, store: map{channel: map{value: str}, countryCode: map{value: str}, cultureInfo: map{value: str}, currencyCode: map{value: str}, currencySymbol: map{value: str}, channelPrivacy: map{value: str}}, public: map, checkout: map{regionId: map{value: str}}}}

@endpoint PATCH /api/sessions
@required {public: map{additionalProperties: map}}
@returns(200) {sessionToken: str, segmentToken: str}

@endpoint GET /api/segments
@returns(200) {campaigns: str?, channel: str, priceTables: str?, regionId: str, utm_campaign: str?, utm_source: str?, utmi_campaign: str?, currencyCode: str, currencySymbol: str, countryCode: str, cultureInfo: str, channelPrivacy: str}

@end
