Authentication
Authentication for the RESTful Ownly API v1 is done via the HTTP basic authentication scheme.
You first have to generate your authentication token Here.
Privacy
Authentication tokens must be kept secure. Do not share Authentication tokens in publicly accessible areas such as source code, tutorials, email, etc.
Request URL
POST https://api.theownly.io/oauth2/token
Headers
Name | Value | Required? |
---|---|---|
Accept | application/json | Yes |
Content-Type | application/json | Yes |
Parameters
Name | Type | Required? | Description |
---|---|---|---|
grant_type | client_credentials | Yes | |
client_id | String | Yes | |
client_secret | String | Yes |
Example Request
curl -X 'POST' \
'https://api.theownly.io/oauth2/token' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"grant_type": "client_credentials",
"client_id": "your_client_id_here",
"client_secret": "your_client_secret_here"
}'
Example Response
{
"access_token": "string",
"token_type": "Bearer",
"refresh_token": "string",
"created_at": 0,
"expires_in": 0,
"refresh_expires_in": 0
}