spicrawlspicrawlDocs
Keys

What this API key is

Returns the key's id, name, prefix, scopes, environment, organization, and whether the key belongs to a partner account (`partner`).

GET
/v1/key

Returns the key's id, name, prefix, scopes, environment, organization, and whether the key belongs to a partner account (partner). Any valid key may call it; no scope is needed. The secret and its hash are never returned. Cache-Control: no-store.

Authorization

bearerAuth
AuthorizationBearer <token>

Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment variable; never hard-code or log it. spicrawl_test_… keys can never spend live credits. Scopes: scrape, batch, sessions (granted by default), browser and read (granted deliberately), and partner (only on a partner account's key). A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.

In: header

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/key"
{  "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",  "name": "string",  "prefix": "string",  "scopes": [    "string"  ],  "environment": "live",  "organization": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  },  "partner": true,  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z"}