Create API key for service account
Mint a new API key bound to a service account. The full identifier is only returned on this response. Team admin only.
post/service-accounts/{idOrName}/api-keys
Request
- Base URLhttps://api.tower.dev/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idOrNamestring required
The ID or name of the service account this key authenticates as.
Request body
Example request
{
"$schema": "https://api.tower.dev/v1/schemas/CreateServiceAccountAPIKeyParams.json"
}Response
Created
Example response
{
"$schema": "https://api.tower.dev/v1/schemas/CreateServiceAccountAPIKeyResponse.json"
}Changes
No recorded changes to this operation across all 12 revisions of this API.