mutation
createWebhookRegisters a URL to receive events (e.g. message.received) when the alias gets new email.
Authentication
Required: x-api-key header or Authorization: Bearer <token>
Arguments
| Name | Type | Description |
|---|---|---|
| projectId* | ID! | - |
| aliasId* | ID! | - |
| input* | CreateWebhookInput! | - |
GraphQL
POST to /graphql
mutation CreateWebhook($projectId: ID!, $aliasId: ID!, $input: CreateWebhookInput!) {
createWebhook(projectId: $projectId, aliasId: $aliasId, input: $input) {
id
url
eventTypes
active
createdAt
secret
}
}Don't have an API key? Sign up to the dashboard to get one for free.
