GET
/
v1
/
apis.getApi
curl --request GET \
  --url https://api.unkey.dev/v1/apis.getApi \
  --header 'Authorization: Bearer <token>'
{
  "id": "key_1234",
  "workspaceId": "ws_1234",
  "name": "Unkey - Production"
}

Changelog

DateChanges
Dec 06 2023Introduced endpoint

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

apiId
string
required

The id of the api to fetch

Minimum length: 1
Example:

"api_1234"

Response

200
application/json
The configuration for an api
id
string
required

The id of the key

Example:

"key_1234"

workspaceId
string
required

The id of the workspace that owns the api

Example:

"ws_1234"

name
string

The name of the api. This is internal and your users will not see this.

Example:

"Unkey - Production"