Upsert a recipient
Upsert a recipient. They are use to send webhooks and each store a name, a HMAC secret key and an optional API key.
POST
/v1/recipients/authorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
namestring
hmacSecretstring
Length
64 <= lengthapiKeystring|null
id?string
Format
uuidResponse Body
application/json
curl -X POST "http://localhost:4007/v1/recipients/" \ -H "Content-Type: application/json" \ -d '{ "id": "5f99d799-73d4-43e0-b247-65918dcdb85f", "name": "recipient-test", "hmacSecret": "37ab8f1ea7c6d98e865a73fc5719383b0eaf13d0f6ec4a93784ac9a77a3b1a09", "apiKey": "api-key" }'{
"id": "5f99d799-73d4-43e0-b247-65918dcdb85f",
"createdAt": "2021-08-02T16:52:15.000Z",
"updatedAt": "2021-08-02T16:52:15.000Z",
"name": "recipient-test"
}