Create a webhook source
cooper_webhook_source_createUse this when a third-party service (Stripe, GitHub, a form, or your own app) should reach this agent through its Cooper inbox. Requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), name (1 to 40 characters: lowercase letters, digits, underscore, hyphen), signature (optional object with preset stripe, github, standard, or hmac_sha256, secret, optional header, and optional max_age_seconds). Returns the source and url once. url is the public POST target. Later reads show url_hint (last 4 characters) and never the token or the secret. At most 10 sources per inbox (HTTP 409 webhook_source_limit). A matching request writes webhook_source.received.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "cooper_webhook_source_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Source name, 1 to 40 characters: lowercase letters, digits, underscore, or hyphen. | |
| inbox_id | No | Inbox id, username, or email. Omit it when this key is limited to one inbox. | |
| signature | No | How to verify the sender. preset is stripe, github, standard, or hmac_sha256. secret is stored encrypted and never returned. header overrides the preset header. max_age_seconds defaults to 300 for stripe and standard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Webhook source id (wsrc_…). | |
| url | No | Public POST URL. Shown on create and rotate only. | |
| name | No | Source name. | |
| object | No | Object type name, such as list, message, or thread. | |
| enabled | No | True when the object is active. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. | |
| url_hint | No | Last 4 characters of the receiver token. | |
| signature | No | preset, header, and max_age_seconds. The secret is not included. | |
| created_at | No | ISO-8601 time the object was created. | |
| updated_at | No | ISO-8601 time the object last changed. |