Skip to content

Tokens

Ownpage API calls are authorized using a temporary token. Your client token should be put in the header X-Ownpage-Client-Token of all your requests. If your token expire, the API returns a 401 Unauthorized response and you should request a new one.

Get a token

1
2
3
4
5
POST https://services.ownpage.fr/v1/token
{
    "username": "CLIENT",
    "password": "API_KEY"
}

With:

  • CLIENT: your Ownpage customer ID.
  • API_KEY: Your unique customer key given by Ownpage.

Example :

1
curl -X POST https://services.ownpage.fr/v1/token --header "Content-Type:application/json" --data "{\"username\": \"CLIENT\", \"password\": \"API_KEY\"}"

Response example:

1
2
3
{
  "token": "78jkhs803lkjh27p081hdlk6m99"
}

Comments