Create an API key
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"label": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys"
payload = { "label": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));API keys
Create an API key
Mints a workspace API key (sk_…). Only its hash is stored. The raw key appears exactly once, inside the flash message text; it cannot be recovered later. Admin of that workspace or super-admin. 404 if the workspace does not exist.
Minimum role: admin (x-min-role). Destructive: false (x-destructive).
POST
/
workspaces
/
{ws_id}
/
api-keys
Create an API key
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"label": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys"
payload = { "label": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/{ws_id}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));