Skip to main content

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

NameValueRequired?
Acceptapplication/jsonYes
Content-Typeapplication/jsonYes

Parameters

NameTypeRequired?Description
grant_typeclient_credentialsYes
client_idStringYes
client_secretStringYes

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
}