SocialKit
APIGet Started

Authentication

Create a personal key in SocialKit and send it as a Bearer token to call the SocialKit REST API.

Every call to the SocialKit API needs a personal key. A key belongs to your user and acts with your rights.

1. Create a personal key

  • Open the SocialKit dashboard at app.socialk.it.
  • In the user menu, choose API.
  • Press Create a personal key.
  • Type a name (or keep the suggested one) and choose when the key expires, or that it never expires.
  • Click Create and copy the key.

You will see the full key this one time only: SocialKit keeps just a hash. Lost it? Rotate the key to get a fresh one.

Manage your keys

On the API page each key shows its last four characters, when it was last used, when it was made and when it expires. From there you can:

  • Edit a key to change its name or expiry.
  • Rotate key to swap it for a new value under the same name and expiry. Anything still sending the old value is refused from that moment.
  • Delete keys you no longer use.

Treat a key like a password. If one leaks, rotate it.

2. Find your workspace UUID

Most endpoints work inside a workspace, so their URL contains the workspace UUID. Two ways to get it:

  • Call List your workspaces with your key.
  • Or, in the dashboard, open the user menu, click Settings, then Settings in the sidebar, and copy the UUID from the Usage in API section.

3. Send the key with each request

Put the key in the Authorization header of every request:

Authorization: Bearer <personal-key>

The header is the only place SocialKit reads the key from: no query string, cookie or other header.

All endpoints live under this base URL:

https://app.socialk.it/core/api

Workspace endpoints add the workspace UUID after it, for example:

curl -X GET 'https://app.socialk.it/core/api/<workspaceUuid>/accounts' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

To test a key, call Ping. A working key gets {"status":"ok"}; a missing, wrong, expired or deleted key gets 401.

What a key can do

A key has no scopes. It can do everything its user can do, and the user's role in each workspace decides what that is (see Permissions). To give an integration less access, create its key from a user with a lower role, such as Viewer.

Conventions

  • Requests and responses are JSON. SocialKit answers in JSON even if you leave out the Accept header.
  • Dates and times in responses are in UTC, whatever timezone your workspace or user uses. Endpoints that take a date and time also accept a timezone field for the input.
  • Errors share one format: see Errors.
  • Some lists come in pages, others in one piece: see Pagination.
  • Calls are rate limited: see Rate limits.

On this page