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
| Field | Type | Description |
|---|---|---|
source | string | Always "api_token" for API token authentication |
team_id | string | UUID of the team the token belongs to |
token_type | string | One of full_access, custom, or read_only |
scopes | string[] | List of granted scopes |
pro_pricing_enabled | boolean | Whether the team has pro pricing enabled |