🐶 OnlySocial API Walk through
Authentication
API endpoints are protected, and therefore require that you authenticate using an access token.
Generate a token
- Navigate to your OnlySocial dashboard.
- Click on Access Tokens from user menu.
- Click on Create.
- Give it a name, then click on Create.
- Copy your token.
Using Your Token
You can authenticate by adding an Authorization
header to all your HTTP calls. The Authorization
header is formatted as such:
Authorization: Bearer <token>
(replace <token>
with your token previously generated).
The url for API endpoints within OnlySocial is as follows:
https://app.onlysocial.io/os/api/*
Example:
curl -L -X GET 'https://app.onlysocial.io/os/api/3bbd0951-5b04-432b-b2a0-688588b0720e/accounts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer myCoolToken'
Last modified: 8 months ago