---
name: session-manager-api
description: "Session Manager API skill. Use when working with Session Manager for api. Covers 4 endpoints."
version: 1.0.0
generator: lapsh
---

# Session Manager API
API version: 1.0

## Auth
ApiKey vtex_session in cookie | ApiKey vtex_segment in cookie

## Base URL
https://apiexamples.vtexcommercestable.com.br

## Setup
1. Set your API key in the appropriate header
2. GET /api/sessions -- verify access
3. POST /api/sessions -- create first sessions

## Endpoints

4 endpoints across 1 groups. See references/api-spec.lap for full details.

### api
| Method | Path | Description |
|--------|------|-------------|
| POST | /api/sessions | Create new session |
| GET | /api/sessions | Get session |
| PATCH | /api/sessions | Edit session |
| GET | /api/segments | Get segment |

## Common Questions

Match user requests to endpoints in references/api-spec.lap. Key patterns:
- "Create a session?" -> POST /api/sessions
- "List all sessions?" -> GET /api/sessions
- "List all segments?" -> GET /api/segments
- "How to authenticate?" -> See Auth section

## Response Tips
- Check response schemas in references/api-spec.lap for field details
- Create/update endpoints typically return the created/updated object

## CLI

```bash
# Update this spec to the latest version
npx @lap-platform/lapsh get session-manager-api -o references/api-spec.lap

# Search for related APIs
npx @lap-platform/lapsh search session-manager-api
```

## References
- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas

> Generated from the official API spec by [LAP](https://lap.sh)
