> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postqueen.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Nostr Settings

> API settings for posting to Nostr

Creating the OAuth app and connecting a channel: [Nostr setup guide](/providers/nostr).

## Settings Schema

When creating a post for Nostr, use the following settings schema:

```json theme={"system"}
{
  "settings": {
    "__type": "nostr"
  }
}
```

<Note>
  Nostr has no provider-specific settings beyond `__type`. The relays that the
  note publishes to are determined by the connected integration, not the
  settings block. Post content, images, and the schedule are configured at
  the post level. Full request body: [Create Post](/public-api/posts/create).
</Note>

## Fields

| Field    | Type     | Required | Description     |
| -------- | -------- | -------- | --------------- |
| `__type` | `string` | Yes      | Must be `nostr` |

***

## Complete Example

### Text Note

```json theme={"system"}
{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-nostr-integration-id"
      },
      "value": [
        {
          "content": "Hello from the PostQueen API!",
          "image": []
        }
      ],
      "settings": {
        "__type": "nostr"
      }
    }
  ]
}
```

### Note with Image

```json theme={"system"}
{
  "type": "now",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-nostr-integration-id"
      },
      "value": [
        {
          "content": "Sharing today's launch screenshot",
          "image": [
            {
              "id": "image-id",
              "path": "https://uploads.postqueen.ai/launch.png"
            }
          ]
        }
      ],
      "settings": {
        "__type": "nostr"
      }
    }
  ]
}
```
