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
headerrequired

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

Response

200 - application/json
id
string
required

The id of the key

workspaceId
string
required

The id of the workspace that owns the api

name
string

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