---
title: "Create a signature"
method: POST
path: "/signatures"
tags: ["Signatures"]
---

# Create a signature

`POST /signatures`

## Request

- Base URL: `https://www.sociahive.com/api/v1`
- URL: `https://www.sociahive.com/api/v1/signatures`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2 (authorization code, authorization URL `/api/oauth/authorize`, token URL `/api/oauth/token`, scopes: `posts:write`)

At most 20 per user. The publish-time length check counts the signature, so a post that would be over the platform limit with it is refused when it is scheduled. Behind the SCHEDULER_SIGNATURES feature flag (403 `feature_disabled` while off).

## Request body

- CreateSignatureRequest
  - `name` string, required
  - `text` string, required
  - `account_ids` union: Default `"all"`.
    - 'all'
    - string[]
  - `is_default` boolean: Default false. Saving a default turns off the defaults it would compete with.

## Response `201`

Signature created

- object
  - `success` true, required
  - `data` Signature, required
    - `id` string, required: MongoDB ObjectId (24-character hex string)
    - `name` string, required
    - `text` string, required: Appended after a blank line at publish.
    - `account_ids` union, required: `"all"` applies to every connected account; otherwise the connected-account ids it applies to.
      - 'all'
      - string[]
    - `is_default` boolean, required: Added to every post on its accounts unless the post picks another signature or `none`. A default for one account wins over a default for all.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request — invalid parameters
- `401`: Authentication required — provide X-API-Key or Bearer token
- `403`: Insufficient scope for this operation
- `409`: You already have 20 signatures (`limit_reached`)
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/sociahive/apis/sociahive-api.md) · [All operations](https://skmtc.dev/sociahive/apis/sociahive-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sociahive/apis/sociahive-api/revisions/791b8548d288?raw)
