Authentication

Soget API use double authentication to identify the application and the customer. The first authentication is performed by the OAuth2 token to identify application and the second authentication is performed by the API key to identify the customer.

OAuth2 token

To authenticate your application, you need register for the API Portal and create an application.

  • Get and use client_id and client_secret to get the $ACCESS_TOKEN
  • Use the $ACCESS_TOKEN to call our API services

Note that the access token url is : https://soget-api-integration.azure-api.net/soget-connect/v1/openid-connect/token.

API Key

To authenticate the customer, you need register for the API Portal and subscribe to an offer.

  • Get and use the $API_KEY to call our API services

Note, that you should use the $API_KEY in the Ocp-Apim-Subscription-Key header of your request.

Request an access token

curl -X POST https://soget-api-integration.azure-api.net/soget-connect/v1/openid-connect/token --data-urlencode "client_id=$YOUR_CLIENT_ID" --data-urlencode "client_secret=$YOUR_CLIENT_SECRET"

Request an API

curl \
  -X GET https://soget-api-integration.azure-api.net \
  -H "Authorization: Bearer $ACCESS_TOKEN"
  -H "Ocp-Apim-Subscription-Key: $API_KEY"
```