cURL
curl --request POST \ --url https://api.mesa.dev/v1/{org}/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "scopes": [ "read" ], "repo_ids": [ "<string>" ], "expires_in_seconds": 15768050, "tags": {} } '
{ "id": "<string>", "key": "<string>", "name": "<string>", "scopes": [ "<string>" ], "repo_ids": [ "<string>" ], "tags": {}, "created_at": "2023-11-07T05:31:56Z" }
Create a new API key for programmatic access
admin
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
read
write
1
Expiration time in seconds. Must be between 100 and 31536000 (365 days).
100 <= x <= 31536000
Show child attributes
API key created