Skip to content

Update callback configuration

Request

Updates the callbacks configuration for the specified project

Security
Basic or OAuth2.0
Path
projectIdstringrequired

Found on your Sinch Customer Dashboard. Settings > Projects.

Example:d1923022-5199-4bb3-a513-c47b3a656bc5
Bodyapplication/json

The callback configuration details to be updated.

hmacSecretstring

The HMAC secret to be updated for the specified project

curl -i -X PATCH \
  -u '<username>:<password>' \
  https://imported.numbers.api.sinch.com/v1/projects/d1923022-5199-4bb3-a513-c47b3a656bc5/callbackConfiguration \
  -H 'Content-Type: application/json' \
  -d '{
    "hmacSecret": "string"
  }'

Responses

Callback configuration

Bodyapplication/json
projectIdstring

ID of the project the configuration belongs to.

Example:"a99aa9aa-b888-777c-dd6d-ee55e5555555"
hmacSecretstring

The HMAC secret used for hashing the callback body using the HMAC-SHA1 algorithm - and for creating the X-Sinch-Signature header.

Example:"YOUR_hmac_secret"
Response
{ "projectId": "a99aa9aa-b888-777c-dd6d-ee55e5555555", "hmacSecret": "YOUR_hmac_secret" }
We'd love to hear from you!
Rate this content: