Mutations
Customers
Mutations for managing customers and API keys.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mutations for managing customers and API keys.
mutation {
createApiKey(input: {
label: "Production Backend"
permissions: ["read", "write", "calculate"]
}) {
apiKey
id
prefix
label
permissions
createdAt
}
}
| Field | Type | Required | Description |
|---|---|---|---|
label | String! | Yes | Descriptive label for the key |
permissions | [String!] | No | Permission scopes (default: all) |
mutation {
revokeApiKey(id: "key_abc123") {
success
revokedAt
}
}
mutation {
updateCustomer(input: {
name: "Acme Sustainability BV"
webhookUrl: "https://acme.com/webhooks/heychocolate"
}) {
id
name
webhookUrl
updatedAt
}
}
| Field | Type | Required | Description |
|---|---|---|---|
name | String | No | Display name |
webhookUrl | String | No | Default webhook URL |