Skip to main content

Get an API key and make your first request

Connect your own tools to OnlySocial.

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

  1. Go to Integrations and click Manage on REST API.

  2. Click Create API key.

Workspace API keys

2. Choose what it can do

  1. Give it a name that says where it is used, such as "Website form" or "n8n", so you know which key to revoke later.

  2. Set an optional expiry date if the key is only needed for a while.

  3. Tick only the permissions it needs. A key that only reads data cannot be misused to post or delete.

  4. Copy the key straight away and store it somewhere safe. You will not see it again.

Creating an API key with permissions

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.

Did this answer your question?