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

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Body

FieldTypeRequiredDescription
namestringYesDisplay name.
biostringNoShort biography.
imageUrlstringNoAvatar URL, either a /media path or an http(s) URL.
emailstringNoContact email.
websitestringNoWebsite URL.
twitterstringNoTwitter/X profile URL.
linkedinstringNoLinkedIn 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.