Skip to Content
Grail Network
API reference

Make a new webhook secret

Makes a new secret that signs your webhooks, and shows it in this answer once. The old secret stops at once: Grail Network signs the next try of every webhook with the new one. Errors: - 409 `PARTNER_WEBHOOK_NOT_SET`: you have no webhook address. Set one first: it makes a secret.

POST
/partner/webhook/secret

Makes a new secret that signs your webhooks, and shows it in this answer once. The old secret stops at once: Grail Network signs the next try of every webhook with the new one.

Errors:

  • 409 PARTNER_WEBHOOK_NOT_SET: you have no webhook address. Set one first: it makes a secret.

Authorization

partnerApiKey
headerAuthorizationBearer <token>

The partner's API key.

Response Body

application/json
  1. response
data*
Example Request
curl -X POST 'https://api-stg.grailnetwork.com/partner/webhook/secret'
Example Response
{  "data": {    "url": "string",    "secretMadeAt": "2019-08-24T14:15:22Z",    "secret": "string"  }}