Postifuse Docs

Profiles

Create a profile key

POSThttps://postifuse.com/v1/keys

A read or write key that sees only the listed profiles: their accounts, posts and media. Give one to a client's own backend, or to the agent that works for that client: it cannot reach anyone else's accounts. The key is shown once.

curl --request POST \
  --url 'https://postifuse.com/v1/keys' \
  --header 'Authorization: Bearer pf_live_…' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "martin-agent",
  "scope": "write",
  "profiles": [
    "prf_martin"
  ],
  "limits": {
    "max_posts_per_day": 3,
    "require_approval": true
  }
}'
{
  "id": "key_31",
  "key": "pf_live_…",
  "scope": "write",
  "profiles": [
    "prf_martin"
  ],
  "limits": {
    "max_posts_per_day": 3,
    "require_approval": true
  },
  "expires_at": null
}

Headers

Authorizationstringrequired

Bearer followed by a workspace key, a profile key or an OAuth token. See authentication.

Example Bearer pf_live_…

Body application/json

namestringrequired

A label for the key.

Example martin-agent

scopestringrequired

read lists, checks and reports. write can also publish.

One of read write

Example write

profilesarray<string>required

The profiles the key can see.

Example ["prf_martin"]

expires_in_daysinteger

Optional expiry. Default: never.

Example 90

limitsobject

Optional caps for an agent that runs unattended: posts per day across the key, allowed networks, and whether every post needs an approval. A post over a cap is held (reason <code>limit_reached</code>, webhook <code>post.held</code>), never dropped.

Example {"max_posts_per_day":3,"networks":["instagram","linkedin"],"require_approval":true}

Show 3 child attributes
max_posts_per_dayinteger
networksarray<string>
require_approvalboolean

Response

200The key, shown once
403Workspace not active