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 the team ID, token type, granted scopes, and whether pro pricing is enabled. Useful for connection checks and debugging.

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
sourcestringAlways "api_token" for API token authentication
team_idstringUUID of the team the token belongs to
token_typestringOne of full_access, custom, or read_only
scopesstring[]List of granted scopes
pro_pricing_enabledbooleanWhether the team has pro pricing enabled

On this page