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
| Field | Type | Description |
|---|---|---|
source | string | "api_token" |
team_id | string | UUID of the team the API 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 API token team has pro pricing enabled |