Authentication
Second version of VercomAPI offers authentication with pair of keys: Application-Key and Authorization. You can generate your keys in your account panel. To authenticate simply add to your request header with name Authorization
and your authorization key as value (string of 128 characters length) and header with name Application-Key
and your app key as value.
Example:
$ curl --request POST \
--header 'Content-Type: application/json' \
--header 'Application-Key: ' \
--header 'Authorization: ' \
--url '...'
--data '{ ... }'
In case of problems with authentication, you will receive a response with the HTTP status code:
HTTP/1.1 401 Unauthorized
with a response body containing details about the occurred error:
{
"errors": [
{
"title": "Empty token",
"message": "Cannot find token in your request. Did you set 'Authorization' header?",
"code": "E-0-004"
}
],
"meta": { }
}