
# Create an author

Create an author. Pages credit the author by the returned `id`, sent as `authorId`.

```sh
POST https://sitepaste.com/api/v1/public/sites/{siteId}/authors
```

Requires the `content` scope.

## Usage

```bash
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](/api/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. |
| email | string | No | Contact email. |
| website | string | No | Website URL. |
| twitter | string | No | Twitter/X profile URL. |
| linkedin | string | No | LinkedIn profile URL. |

The site is named in the path, not the body. See [addressing](/api/overview#addressing).

## Response

201 Created with the author record, including its `id`, and a `Location` header naming the new author.