/v2/contacts/generate_hmac_key

POST

Generates a new HMAC key for the current contact.

The API responses shown below are static. If you want to try out the API please login, or register for an API key

API parameters

Required
NameInTypeDescription
X-Auth-Token header string Authentication token.
curl -X POST  --header "X-Auth-Token: XXXX-XXXXX-XXXX"  https://devapi.currencycloud.com/v2/contacts/generate_hmac_key

Response

{
    "hmac_key": "b390263793b4ee9c0a754be7f4852c16f3099338e85d9ed1"
}
Error Codes
HTTP Status Code Description Params
400 generate_hmac_key_wrong_brand HMAC key can't be generated for that brand
generate_hmac_key_brand_not_configured Brand #{brand} should be configured first
401 invalid_supplied_credentials Authentication failed with the supplied credentials
403 permission_denied permission_denied
429 too_many_requests Too many requests have been made to the api. Please refer to the Developer Center for more information
500 internal_server_error Internal server error
503 service_unavailable Service is temporary unavailable
Was this page helpful?
Yes
No