latestOpenAPI 3.1.02026-08-20118232229.3 KB

0e42b0fb26d9

Create API Key

post/api-keys

Request body

$schemastring uri

A URL to the JSON Schema for this object.

expires_atstring date-time nullable

When this API key expires.

namestring required
scopesstring nullable

Space separated scopes that this API key is valid for.

teamstring nullable

The team this API key is associated with. This field is optional. You must be a member of the team that you're creating the API key for, and if you're using an API key to create a new API key, the API key you use to authenticate this request must be a personal API key.

Example request

{
  "$schema": "https://api.tower.dev/v1/schemas/CreateAPIKeyParams.json"
}

Response

Created

$schemastring uri

A URL to the JSON Schema for this object.

Example response

{
  "$schema": "https://api.tower.dev/v1/schemas/CreateAPIKeyResponse.json"
}