# Get a token from api key (public) **POST /auth/token** Will genereate an api token from the api key ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Parameters ### Headers - **X-Popsell-Domain** (string) The domain of the user ### Body: application/json (object) - **api_key** (string) ## Responses ### 200 Return the api token #### Body: application/json (object) - **token** (string) ### 401 Unauthorized #### Body: application/json (object) - **message** (string) ### 422 Unprocessable Content #### Body: application/json (object) - **message** (string) Error message. - **errors** (object) [Powered by Bump.sh](https://bump.sh)