Voice API v2 uses two different types of authentications, one for each direction of traffic:
- API authentication (your requests to Sinch): you authenticate API requests with a project-level access key and secret. Voice API v2 supports both OAuth 2.0 and Basic Auth. Basic Auth is fine for testing and getting started. Use OAuth 2.0 for production if your security setup requires access tokens.
- Webhook authentication (Sinch's requests to your server): every webhook Sinch sends is signed with your Voice service's key and secret. The signature is in the authorization header, along with an x-timestamp header. To verify a request, recompute the signature on your side and compare it with the one in the header.
For more information, see:
- Basic HTTP authentication (Voice API v2): authenticate API requests with your access key and secret
- Sinch authentication (OAuth 2.0 and access keys): get access tokens for OAuth 2.0
- Access Keys API: create and manage access keys
- Webhook signature (Voice API v2): how to compute and validate the signature
The two credential sets are different: the access key is for the project, while the webhook signature uses the key and secret of the Voice service.
Comments
0 comments
Please sign in to leave a comment.