Skip to content
API console (try a request with your own key)Get early access

Get an API key

GET
/v1/api-keys/{keyId}
KEY_ID=9d4c1a2b-6e8f-4a3c-b5d7-2f1e0a9b8c7d # a keyId from the list of API keys
curl -sS "https://api.speccapture.com/v1/api-keys/$KEY_ID" \
-H "Authorization: Bearer $SPECCAPTURE_API_KEY"

The key as GET /v1/api-keys lists it: its name, prefix, mode, role, who made it, when it was last used and whether it still works (status, stopsAt). Never the key itself. Another workspace’s key, or an id nobody issued, is 404 not_found. A key acting as the workspace’s owner or an admin.

keyId
required
string format: uuid

OK

Media typeapplication/json
object
keyId
required
string format: uuid
name
required
string
prefix
required
string
mode
required
Allowed values: live test
role
required
Allowed values: owner admin member
requestsPerMinute
required
integer format: int32
createdBy
required
object
kind
required
Allowed values: person apiKey
name
required
null | string
createdAt
required
string format: date-time
lastUsedAt
required
null | string format: date-time
status
required
Allowed values: active stopping revoked
stopsAt
required
null | string format: date-time

Forbidden: a problem with a stable code. See Errors for every code and what to do about it.

Media typeapplication/problem+json

Every error: a problem with a stable code. https://speccapture.com/docs/api/errors lists every code.

object
type

A link to the code’s entry in the docs.

null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
code

What went wrong, as a stable code to branch on: a published code never changes meaning.

string
traceId

This request’s trace: quote it when asking for help.

string

Not Found: a problem with a stable code. See Errors for every code and what to do about it.

Media typeapplication/problem+json

Every error: a problem with a stable code. https://speccapture.com/docs/api/errors lists every code.

object
type

A link to the code’s entry in the docs.

null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
code

What went wrong, as a stable code to branch on: a published code never changes meaning.

string
traceId

This request’s trace: quote it when asking for help.

string