Docs
API reference

Retrieve the current API key

GET
/api/v1/api-key

Describes the key that authenticated the request: its name, scopes, expiry and environment. Any valid key can call this.

Any valid API key can call this endpoint.

Errors

  • 401: authentication_required, invalid_api_key
  • 403: api_access_disabled, insufficient_scope
  • 429: rate_limit_exceeded
  • 500: api_error
  • 503: service_unavailable

Authorization

ApiKey
headerAuthorizationBearer <probb_live_<id>_<secret>>

Response Body

Success.

application/json
  1. response
object*string
id*string

The key's ID. Not the secret.

name*string

The name given when the key was created.

scopes*array<>

What the key may do. x:write also allows x:read.

environment*string

test keys work only against the developer sandbox.

Value in"live""test"
createdAt*string

When the key was created.

Formatdate-time
expiresAt*string

When the key stops working.

Formatdate-time
lastUsedAt*|

When the key last authenticated, or null if never.

owner*

Keys act for the member who created them, with what their role allows. Revoking the key, changing the member's role or removing them stops it.

Example Request
# Set PROBB_URL and PROBB_API_KEY. Replace any *_VALUE placeholder and any example ID (such as job_example) with a real one.curl --fail-with-body -X GET "$PROBB_URL/api/v1/api-key" \  -H "Authorization: Bearer $PROBB_API_KEY"
Example Response
{  "object": "api_key",  "id": "string",  "name": "string",  "scopes": [    "candidates:read"  ],  "environment": "live",  "createdAt": "2019-08-24T14:15:22Z",  "expiresAt": "2019-08-24T14:15:22Z",  "lastUsedAt": "2019-08-24T14:15:22Z",  "owner": {    "id": "string",    "name": "string"  }}