cURL
curl --request POST \ --url https://api.withampersand.com/v1/projects/{projectIdOrName}/api-keys \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data '{ "label": "MailMonkey API Key", "scopes": [ [ "full", "frontend" ] ] }'
{ "key": "api-key-123", "label": "MailMonkey API Key", "scopes": [ [ "full", "frontend" ] ], "projectId": "my-project", "active": true }
The Ampersand project ID or project name.
A short name for the API key.
"MailMonkey API Key"
The scopes for the API key.
Created
The API key.
"api-key-123"
The project ID.
"my-project"
Whether the API key is active.
true
Was this page helpful?