The OnlySocial REST API lets your own software, or tools like n8n, work with your workspace: for example creating posts, reading contacts or sending messages. To use it you need an API key, which proves the request comes from your workspace and decides what it is allowed to do.
Watch it: the part on this topic starts at 0:20. Jump to 0:20 on YouTube.
1. Create a key
Go to Integrations and click Manage on REST API.
Click Create API key.
2. Choose what it can do
Give it a name that says where it is used, such as "Website form" or "n8n", so you know which key to revoke later.
Set an optional expiry date if the key is only needed for a while.
Tick only the permissions it needs. A key that only reads data cannot be misused to post or delete.
Copy the key straight away and store it somewhere safe. You will not see it again.
3. Make your first request
Send the key in the Authorization header as Bearer YOUR_KEY. Every endpoint, with examples, is in the API guide: https://api.onlysocial.io
A good first request is one that only reads data, so you can check the key works without changing anything. If the request is refused, check the header is spelled correctly and the key has permission for that endpoint.
Tip: Revoke a key on this page if it leaks. Anything using it stops working at once.


