Auth

Authentication endpoint for verifying API tokens and inspecting session details.

Verify token

GET /auth/token

Verify your API token and inspect the session details.

Scope: Any valid API token

Description: Returns token session metadata such as the team ID and granted scopes. Useful for connection checks and debugging.

The API does not accept OAuth access tokens issued to MCP clients. Those tokens work only with the Presscart MCP server, and the API answers 401 when one is sent to it directly.

Request

curl "https://api.presscart.com/auth/token" \
  -H "Authorization: Bearer $PRESSCART_API_TOKEN"

Response

{
  "source": "api_token",
  "team_id": "11111111-1111-1111-1111-111111111111",
  "token_type": "custom",
  "scopes": ["products.read", "orders.create", "campaigns.update"],
  "pro_pricing_enabled": true
}

Response fields

FieldTypeDescription
sourcestring"api_token"
team_idstringUUID of the team the API token belongs to
token_typestringOne of full_access, custom, or read_only
scopesstring[]List of granted scopes
pro_pricing_enabledbooleanWhether the API token team has pro pricing enabled

On this page