Skip to main content
POST
PublicApiCreateApiKey
Use this endpoint through the Developer API or the matching firstsales CLI command when available. Responses use the stable FirstSales public error envelope.

Authorizations

Authorization
string
header
required

FirstSales developer API key bearer token (fs-key-*).

Path Parameters

orgId
string
required

Body

application/json
name
string
required
Required string length: 1 - 100
scopes
enum<string>[]
required
Minimum array length: 1
Available options:
organizations:read,
workspaces:read,
api_keys:read,
api_keys:write,
campaigns:read,
campaigns:write,
contacts:read,
contacts:write,
connectors:read,
connectors:write,
inbox:read,
inbox:write,
kb:read,
kb:write,
offerings:read,
offerings:write,
tracking:read,
tracking:write,
billing:read,
billing:write,
members:read,
members:write,
groups:write,
domains:read,
domains:write,
deals:read,
deals:write,
companies:read,
companies:write,
activities:read,
activities:write,
copilot:read,
copilot:write,
*
accessLevel
enum<string>
default:workspace
Available options:
workspace,
organization

Response

Successful response

apiKey
object
required
rawKey
string
required

Reveal-once API key secret. Store it securely; it cannot be retrieved later.