Create an author
Create an author. Pages credit the author by the returned id, sent as authorId.
POST https://sitepaste.com/api/v1/public/sites/{siteId}/authors
Requires the content scope.
Usage
curl -X POST https://sitepaste.com/api/v1/public/sites/default/authors \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "Jane Doe", "bio": "Staff writer", "website": "https://jane.example.com" }'
Authorizations
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication. |
Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Display name. |
| bio | string | No | Short biography. |
| imageUrl | string | No | Avatar URL, either a /media path or an http(s) URL. |
| string | No | Contact email. | |
| website | string | No | Website URL. |
| string | No | Twitter/X profile URL. | |
| string | No | LinkedIn profile URL. |
The site is named in the path, not the body. See addressing.
Response
201 Created with the author record, including its id, and a Location header naming the new author.