POST
/
v1
/
apis.createApi
curl --request POST \
  --url https://api.unkey.dev/v1/apis.createApi \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "my-api"
}'
{
  "apiId": "api_134"
}

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.

Body

application/json
name
string
required

The name for your API. This is not customer facing.

Minimum length: 3

Response

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

The id of the api