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
headerrequired

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.

Response

200 - application/json
apiId
string
required

The id of the api