Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Authentication

Every Akarso command needs an API key to authenticate with the Akarso API. Keys have an ak_ prefix.

Sign up and get an API key

Signing up and creating an API key is free — a subscription is only needed to create and publish posts (see pricing).
The easiest way is the CLI browser login:
akarso auth login
This opens a browser window where you sign in and approve the CLI. An API key is automatically created and saved.
You can also create profile-pinned keys manually from the dashboard after signing in with Google.

Org and profile scope

Every API key belongs to one org and is pinned to one profile (workspace) in that org. A profile holds its own connected accounts, posts, and drafts.
When you create a key in the dashboard, choose the profile it should target. CLI login creates a key for the current/default profile.
ak_ API key ──> org membership check ──> pinned profile ──> connected accounts + posts

Overriding the profile

You can override the pinned profile per-command with --profile:
# List profiles to find their IDs akarso profiles list # Post from a different profile without creating a new key akarso posts create --text "Hello!" --platforms x --profile 01JXYZ...
The --profile flag works on every command. The profile must belong to the same org as the API key. You can also set AKARSO_PROFILE_ID as an environment variable.
PrioritySource
1--profile flag
2AKARSO_PROFILE_ID env var
3API key's pinned profile
4Org's default profile

REST API headers

Raw REST API requests should send the key as a bearer token:
curl https://akarso.co/api/v2/profiles \ -H "Authorization: Bearer $AKARSO_API_KEY"
To override the profile in REST calls, add the x-akarso-profile-id header:
curl https://akarso.co/api/v2/posts \ -H "Authorization: Bearer $AKARSO_API_KEY" \ -H "x-akarso-profile-id: 01JXYZ..."
The profile must belong to the key's org. Without the header, the key's pinned profile is used.

Manual key setup

If you already have an API key:
akarso auth set --key ak_your_key_here

Resolution priority

The CLI looks for the API key in this order:
PrioritySourceExample
1--api-key flagakarso posts list --api-key ak_xxx
2AKARSO_API_KEY env varexport AKARSO_API_KEY=ak_xxx
3Config file~/.akarso/config.json

Config file

The config file lives at ~/.akarso/config.json:
{ "apiKey": "ak_your_key_here" }
The akarso auth login and akarso auth set commands write this file automatically.

Verify your key

akarso auth check
This calls the Akarso API to verify the key is valid.

Environment variables

VariableDescription
AKARSO_API_KEYAPI key for authentication
AKARSO_PROFILE_IDProfile ID to override the key's pinned profile
AKARSO_API_URLCustom API base URL (for development)
The --api-key flag is useful for one-off commands or when switching between multiple keys. For regular use, set the env var or save to the config file.