# /auth/exchange - Exchange Logto token for custom JWT **POST /auth/exchange** Exchange a Logto access token for a custom JWT with embedded permissions ## Servers - Backend API server (port 8080): https://api.your-domain.com/api (Backend API server (port 8080)) - Collect API server (port 8081): https://collect.your-domain.com/api (Collect API server (port 8081)) ## Parameters ### Body: application/json (object) - **access_token** (string) Logto access token to exchange ## Responses ### 200 Token exchange successful #### Body: application/json (object) - **code** (integer) - **message** (string) - **data** (object) ### 400 Bad request - validation error #### Body: application/json (object) - **code** (integer) HTTP error code - **message** (string) Error message - **data** (object) ### 401 Unauthorized - invalid or missing token #### Body: application/json (object) - **code** (integer) - **message** (string) - **data** (object | null) [Powered by Bump.sh](https://bump.sh)