All PlaySafe ID endpoints require Developer API keys to access, which can be found in your developer settings. These are provided in one of two ways, depending on the type of endpoint being accessed.
User Authorization
As mentioned in the User Authorization Flow section, endpoints for connecting users to your games use an OAuth-style flow, so are expecting credentials to be provided as the relevant parameter. The API key should be provided as the client_secret
parameter.
curl -X GET -G \
'https://api.playsafeid.com/v1/oauth/token' \
-d code=${OAUTH_CODE} \
-d client_id=${GAME_ID} \
-d client_secret=${API_KEY}
All Others
For all other endpoints, API keys should be provided as a Bearer Authorization header with the request.
curl -X GET \
'https://api.playsafeid.com/v1/users' \
-H "Authorization: Bearer ${API_KEY}"