Authorization and Scopes



OAuth 2.0 Endpoints

Following how to request a token for the delivery scope

curl -F 'client_id=[CLIENT_ID]' \
     -F 'client_secret=[CLIENT_SECRET]' \
     -F 'grant_type=client_credentials' \
     -F 'scope=delivery' \
  "access_token": "[TOKEN]",
  "created_at": 1489614070,
  "expires_in": 7200,
  "scope": "delivery",
  "token_type": "bearer"

Please contact the account manager in order to get access keys.


Gett Delivery uses 3 kinds of scopes (once at a time): delivery, sandbox, and business.

scope = delivery: Use it when integration and tests are completed.
When using such a scope, all the requests will create real deliveries.

scope = sandbox: use it for implementation and testing.
More info regarding sandbox can be found here

scope = business: use it when subscribing to a Delivery Webhooks Events, updating or delete the webhook address.