createApiKey
Create a new API key for your organization.
mutation {
createApiKey(input: {
label: "Production Backend"
permissions: ["read", "write", "calculate"]
}) {
apiKey
id
prefix
label
permissions
createdAt
}
}
The full API key is only returned once at creation time. Store it securely.
Input:
| Field | Type | Required | Description |
|---|
label | String! | Yes | Descriptive label for the key |
permissions | [String!] | No | Permission scopes (default: all) |
revokeApiKey
Revoke an existing API key.
mutation {
revokeApiKey(id: "key_abc123") {
success
revokedAt
}
}
updateCustomer
Update customer profile data.
mutation {
updateCustomer(input: {
name: "Acme Sustainability BV"
webhookUrl: "https://acme.com/webhooks/heychocolate"
}) {
id
name
webhookUrl
updatedAt
}
}
Input:
| Field | Type | Required | Description |
|---|
name | String | No | Display name |
webhookUrl | String | No | Default webhook URL |