> For the complete documentation index, see [llms.txt](https://eventx-hq.gitbook.io/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eventx-hq.gitbook.io/knowledge-base/api-doc/auth.md).

# Auth

## POST /public-api/v1/auth

> Issue a short-lived JWT for API access

```json
{"openapi":"3.0.0","info":{"title":"Public Api","version":"beta"},"servers":[{"url":"https://esaas-api.eventx.io"}],"paths":{"/public-api/v1/auth":{"post":{"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"accessToken":{"type":"string","description":"Bearer JWT for subsequent API requests"},"userId":{"type":"string","format":"uuid","description":"ID of the authenticated user"},"expiresIn":{"type":"string","description":"Token expiry duration"}},"required":["accessToken","userId","expiresIn"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"500":{"description":"ERROR"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiToken":{"type":"string","description":"API token obtained from the platform admin panel"}},"required":["apiToken"],"additionalProperties":false}}}},"tags":["Auth"],"operationId":"issueJwt","summary":"Issue a short-lived JWT for API access"}}}}
```
