Narrareach Direct Messages API

Read and reply to direct-message conversations from the writer's connected accounts.

GitHub OpenAPI

Operations 9

GET /api/v1/conversations List direct-message conversations #
GET /api/v1/conversations/{id} Read a direct-message conversation #
GET /api/v1/conversations/{id}/reply-drafts Read a conversation's reply draft and reply window #
POST /api/v1/conversations/{id}/reply-drafts Draft a direct-message reply #
GET /api/v1/conversation-reply-drafts/{id} Read a direct-message reply draft #
PATCH /api/v1/conversation-reply-drafts/{id} Edit a direct-message reply draft #
POST /api/v1/conversation-reply-drafts/{id}/send Send an approved direct-message reply #
POST /api/v1/conversation-reply-drafts/{id}/dismiss Dismiss a direct-message reply draft #
POST /api/v1/conversation-reply-drafts/{id}/release Return an unconfirmed reply to review #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/narrareach-com:narrareach-com-direct-messages-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

narrareach-com-direct-messages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Narrareach Automation Direct Messages API
  version: 1.1.0
  description: Scoped REST API for authenticated Narrareach agents and automations. Create tokens in Narrareach settings and grant only the permissions required by the client. 1.1.0 adds Note versions (/api/v1/notes/{id}/versions) and hashtag sets (/api/v1/notes/hashtag-sets), the article and Note request fields the API already accepted, the refresh parameter on LinkedIn Article destinations, Stats engagement-peak basis and benchmark fields, the outbound webhooks payloads, and a list of error codes (components.x-error-codes). 429 is now declared only on the operations that can return it.
  contact:
    name: Narrareach Support
    url: https://www.narrareach.com/contact
servers:
- url: https://www.narrareach.com
  description: Production
tags:
- name: Direct Messages
  description: Read and reply to direct-message conversations from the writer's connected accounts.
paths:
  /api/v1/conversations:
    get:
      tags:
      - Direct Messages
      summary: List direct-message conversations
      description: 'Lists the writer''s stored direct-message conversations from Instagram, Facebook, TikTok, Bluesky and Substack, newest message first. Read-only: conversations are read from the platforms every few minutes (Substack about once an hour); sync.lastSyncedAt says when. state=inbox lists conversations where the reader wrote last within the past 7 days; history lists the rest. Requires the Revenue Writer plan or above (402 UPGRADE_REQUIRED otherwise).'
      operationId: listConversations
      security:
      - scopedBearerToken:
        - activity:read
      parameters:
      - name: state
        in: query
        schema:
          type: string
          enum:
          - inbox
          - history
          - all
          default: inbox
      - name: platform
        in: query
        schema:
          type: string
          enum:
          - all
          - instagram
          - facebook
          - tiktok
          - bluesky
          - substack
          default: all
      - name: kind
        in: query
        description: 'direct: one-to-one DMs. group: group chats (Substack). all: both.'
        schema:
          type: string
          enum:
          - all
          - direct
          - group
          default: all
      - name: cursor
        in: query
        schema:
          type: string
          maxLength: 191
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationListResponse'
        '400':
          description: 'VALIDATION_ERROR or INVALID_CONVERSATION_CURSOR: a query value or the cursor is not valid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
  /api/v1/conversations/{id}:
    get:
      tags:
      - Direct Messages
      summary: Read a direct-message conversation
      description: Returns one of the writer's conversations and its stored messages, newest first. Pass page.nextCursor as cursor for older messages. Deleted messages have content null.
      operationId: getConversation
      security:
      - scopedBearerToken:
        - activity:read
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      - name: cursor
        in: query
        schema:
          type: string
          maxLength: 191
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 50
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: 'CONVERSATION_NOT_FOUND: the conversation does not exist or is not the writer''s.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
  /api/v1/conversations/{id}/reply-drafts:
    get:
      tags:
      - Direct Messages
      summary: Read a conversation's reply draft and reply window
      description: 'Returns the conversation''s unsent or still-sending reply draft (null when there is none) and replyWindow: whether a reply can go out now and until when. Instagram and Facebook take replies up to 7 days after the reader''s last message, TikTok 48 hours, Bluesky and Substack any time.'
      operationId: getConversationReplyDraft
      security:
      - scopedBearerToken:
        - activity:read
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationReplyDraftResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: 'CONVERSATION_NOT_FOUND: the conversation does not exist or is not the writer''s.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
    post:
      tags:
      - Direct Messages
      summary: Draft a direct-message reply
      description: 'Saves a reply for review. Omit text to get a suggestion in the writer''s voice from the recent messages (not in group chats: GROUP_CHAT_SUGGESTION_OFF). Nothing is sent. Replaces an unsent draft for the same conversation.'
      operationId: createConversationReplyDraft
      security:
      - scopedBearerToken:
        - activity:write
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                text:
                  type: string
                  minLength: 1
                  maxLength: 1000
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationReplyDraftResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: 'CONVERSATION_NOT_FOUND: the conversation does not exist or is not the writer''s.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: 'REPLY_IN_PROGRESS: a reply to this conversation is still being sent.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: 'NOT_REPLYABLE or GENERATION_QUALITY_FAILED: replies are not available here, or no usable suggestion was written; send text.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: 'GENERATION_RATE_LIMITED: the suggestion budget is spent; wait or send text.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          $ref: '#/components/responses/InternalError'
  /api/v1/conversation-reply-drafts/{id}:
    get:
      tags:
      - Direct Messages
      summary: Read a direct-message reply draft
      description: Returns one reply draft. A held send (SENDING) becomes POSTED here once the sync reads the sent message back.
      operationId: getConversationReplyDraftById
      security:
      - scopedBearerToken:
        - activity:read
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationReplyDraftOnlyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: 'DRAFT_NOT_FOUND: the draft does not exist or is not the writer''s.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
    patch:
      tags:
      - Direct Messages
      summary: Edit a direct-message reply draft
      description: Changes the text of an unsent reply draft. Nothing is sent.
      operationId: updateConversationReplyDraft
      security:
      - scopedBearerToken:
        - activity:write
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - text
              - expectedUpdatedAt
              additionalProperties: false
              properties:
                text:
                  type: string
                  minLength: 1
                  maxLength: 1000
                expectedUpdatedAt:
                  type: string
                  format: date-time
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationReplyDraftOnlyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: 'DRAFT_CHANGED or DRAFT_NOT_EDITABLE: expectedUpdatedAt is stale, or the draft is no longer pending.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          $ref: '#/components/responses/InternalError'
  /api/v1/conversation-reply-drafts/{id}/send:
    post:
      tags:
      - Direct Messages
      summary: Send an approved direct-message reply
      description: 'Sends the draft from the writer''s own connected account, only after the writer approved the exact text and recipient. POSTED means sent. SENDING with failureCode DELIVERY_UNCONFIRMED means it may have been sent: check the conversation, then use /release only if it is not there. A refused send (window closed, account needs reconnecting, platform busy) returns the draft to PENDING_REVIEW and answers with the reason. Sending again is safe: the same draft never sends twice.'
      operationId: sendConversationReplyDraft
      security:
      - scopedBearerToken:
        - activity:write
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - expectedUpdatedAt
              additionalProperties: false
              properties:
                expectedUpdatedAt:
                  type: string
                  format: date-time
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationReplyDraftOnlyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: 'DRAFT_CHANGED or DRAFT_NOT_SENDABLE: expectedUpdatedAt is stale, or the draft is not pending review.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: 'WINDOW_CLOSED, ACCOUNT_RECONNECT_REQUIRED, SUBSTACK_CHECK_REQUIRED, RATE_LIMITED, NOT_REPLYABLE or REPLY_NOT_DELIVERED: not sent; the draft is back in review.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          $ref: '#/components/responses/InternalError'
  /api/v1/conversation-reply-drafts/{id}/dismiss:
    post:
      tags:
      - Direct Messages
      summary: Dismiss a direct-message reply draft
      description: Discards an unsent reply draft.
      operationId: dismissConversationReplyDraft
      security:
      - scopedBearerToken:
        - activity:write
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - expectedUpdatedAt
              additionalProperties: false
              properties:
                expectedUpdatedAt:
                  type: string
                  format: date-time
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationReplyDraftOnlyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: DRAFT_CHANGED or DRAFT_NOT_EDITABLE.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          $ref: '#/components/responses/InternalError'
  /api/v1/conversation-reply-drafts/{id}/release:
    post:
      tags:
      - Direct Messages
      summary: Return an unconfirmed reply to review
      description: 'After the writer checked the conversation and an unconfirmed reply is not there, returns it to PENDING_REVIEW so it can be sent again. Requires confirmedNotPosted: true. Never sends.'
      operationId: releaseConversationReplyDraft
      security:
      - scopedBearerToken:
        - activity:write
      parameters:
      - name: id
        in: path
        required: true
        description: Narrareach resource identifier.
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - expectedUpdatedAt
              - confirmedNotPosted
              additionalProperties: false
              properties:
                expectedUpdatedAt:
                  type: string
                  format: date-time
                confirmedNotPosted:
                  type: boolean
                  const: true
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationReplyDraftOnlyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: 'DRAFT_CHANGED or REPLY_IN_PROGRESS: stale, or the send is not unconfirmed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ConversationReplyDraft:
      type: object
      required:
      - id
      - conversationId
      - platform
      - generatedText
      - currentText
      - finalText
      - source
      - status
      - voiceApplied
      - externalMessageId
      - failureCode
      - createdAt
      - updatedAt
      - sentAt
      properties:
        id:
          type: string
        conversationId:
          type: string
        platform:
          type:
          - string
          - 'null'
        generatedText:
          type: string
        currentText:
          type: string
        finalText:
          type:
          - string
          - 'null'
        source:
          type: string
          enum:
          - APP
          - MCP
          - AGENT
          - API
        status:
          type: string
          enum:
          - PENDING_REVIEW
          - SENDING
          - POSTED
          - FAILED
          - DISMISSED
        voiceApplied:
          type: boolean
        externalMessageId:
          type:
          - string
          - 'null'
          description: The platform's id for the sent message.
        failureCode:
          type:
          - string
          - 'null'
          description: Why the last send did not complete, e.g. WINDOW_CLOSED or DELIVERY_UNCONFIRMED.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        sentAt:
          type:
          - string
          - 'null'
          format: date-time
      additionalProperties: false
    ConversationListResponse:
      type: object
      required:
      - success
      - conversations
      - page
      - sync
      properties:
        success:
          type: boolean
          const: true
        conversations:
          type: array
          items:
            $ref: '#/components/schemas/Conversation'
        page:
          type: object
          required:
          - hasMore
          - nextCursor
          properties:
            hasMore:
              type: boolean
            nextCursor:
              type:
              - string
              - 'null'
          additionalProperties: false
        sync:
          type: object
          required:
          - lastSyncedAt
          properties:
            lastSyncedAt:
              type:
              - string
              - 'null'
              format: date-time
          additionalProperties: false
      additionalProperties: false
    Conversation:
      type: object
      required:
      - id
      - platform
      - kind
      - memberCount
      - account
      - participant
      - lastMessagePreview
      - lastMessageAt
      - unreadCount
      - state
      - url
      - messagesComplete
      properties:
        id:
          type: string
        platform:
          type: string
          enum:
          - instagram
          - facebook
          - tiktok
          - bluesky
          - substack
        kind:
          type: string
          enum:
          - direct
          - group
          description: 'direct: the writer and one other person. group: a group chat with two or more others; participant.name is the chat''s title and participant.id is null.'
        memberCount:
          type:
          - integer
          - 'null'
          minimum: 2
          description: Everyone in the conversation, the writer included; null when the platform does not report it.
        account:
          type: object
          required:
          - name
          properties:
            name:
              type:
              - string
              - 'null'
          additionalProperties: false
        participant:
          type: object
          required:
          - id
          - name
          - avatarUrl
          properties:
            id:
              type:
              - string
              - 'null'
            name:
              type:
              - string
              - 'null'
            avatarUrl:
              type:
              - string
              - 'null'
          additionalProperties: false
        lastMessagePreview:
          type:
          - string
          - 'null'
        lastMessageAt:
          type:
          - string
          - 'null'
          format: date-time
        unreadCount:
          type: integer
          minimum: 0
        state:
          type: string
          enum:
          - inbox
          - history
        url:
          type:
          - string
          - 'null'
        messagesComplete:
          type: boolean
          description: False while some messages are still being read from the platform.
      additionalProperties: false
    ConversationReplyDraftResponse:
      type: object
      required:
      - success
      - draft
      - replyWindow
      properties:
        success:
          type: boolean
          const: true
        draft:
          oneOf:
          - $ref: '#/components/schemas/ConversationReplyDraft'
          - type: 'null'
        replyWindow:
          $ref: '#/components/schemas/ConversationReplyWindow'
      additionalProperties: false
    ConversationResponse:
      type: object
      required:
      - success
      - conversation
      - messages
      - page
      properties:
        success:
          type: boolean
          const: true
        conversation:
          $ref: '#/components/schemas/Conversation'
        messages:
          type: array
          items:
            type: object
            required:
            - id
            - direction
            - senderName
            - content
            - attachmentTypes
            - sentAt
            - isDeleted
            properties:
              id:
                type: string
              direction:
                type: string
                enum:
                - incoming
                - outgoing
              senderName:
                type:
                - string
                - 'null'
              content:
                type:
                - string
                - 'null'
              attachmentTypes:
                type: array
                items:
                  type: string
              sentAt:
                type: string
                format: date-time
              isDeleted:
                type: boolean
            additionalProperties: false
        page:
          type: object
          required:
          - hasMore
          - nextCursor
          properties:
            hasMore:
              type: boolean
            nextCursor:
              type:
              - string
              - 'null'
          additionalProperties: false
      additionalProperties: false
    ConversationReplyDraftOnlyResponse:
      type: object
      required:
      - success
      - draft
      properties:
        success:
          type: boolean
          const: true
        draft:
          $ref: '#/components/schemas/ConversationReplyDraft'
      additionalProperties: false
    ApiError:
      type: object
      required:
      - error
      properties:
        code:
          type: string
          deprecated: true
          description: Compatibility alias for error.code. New clients should use error.code.
        message:
          type: string
          deprecated: true
          description: Compatibility alias for error.message. New clients should use error.message.
        resolution:
          type: string
          deprecated: true
          description: Compatibility alias for error.resolution. New clients should use error.resolution.
        error:
          type: object
          required:
          - code
          - message
          - resolution
          properties:
            code:
              type: string
              example: TOKEN_MISSING_SCOPE
              description: Stable error.code values. components.x-error-codes lists the codes the API returns, with HTTP status and the operations that return each; new codes may be added, so treat an unlisted code by its HTTP status.
            message:
              type: string
              example: This API token does not include the notes:write permission.
            resolution:
              type: string
              example: Create a token with notes:write and retry the request.
            details:
              description: Optional validation or recovery details.
    ConversationReplyWindow:
      type: object
      required:
      - canSend
      - closesAt
      - reason
      properties:
        canSend:
          type: boolean
        closesAt:
          type:
          - string
          - 'null'
          format: date-time
        reason:
          type:
          - string
          - 'null'
          enum:
          - WINDOW_CLOSED
          - NOT_REPLYABLE
          - null
      additionalProperties: false
  responses:
    BadRequest:
      description: The request is malformed or failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: The requested resource or API route does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    PaymentRequired:
      description: The account needs an active subscription or a plan with Automation API access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: The bearer token is missing, invalid, revoked, or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: The request could not be completed safely.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Conflict:
      description: The request conflicts with current resource or idempotency state. Reply delivery may return REPLY_NOT_DELIVERED or DELIVERY_UNCONFIRMED; the latter requires checking the provider thread before recovery.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Forbidden:
      description: The token is valid but lacks the required scope or workspace role.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    scopedBearerToken:
      type: http
      scheme: bearer
      bearerFormat: Narrareach automation token
      description: 'Send `Authorization: Bearer nrr_api_…`. Tokens are user-created and restricted to the operation scopes listed in each Security Requirement Object; a token needs any one of the scopes an operation lists. New tokens get every scope unless you choose fewer. A token stored with no scopes (an older token) is accepted for every operation. A token whose scopes were chosen does not gain scopes added later; create a new token to use them.'
      x-available-scopes:
        notes:read: Read Notes, Note operation state, and stored Stats insights.
        notes:write: Create, update, schedule, publish, and delete Notes.
        articles:write: Create, schedule, reschedule, and cancel articles.
        activity:read: Read connected Substack reader activity.
        activity:write: Reply to and triage connected Substack reader activity.
        webhooks:write: 'Reserved. No /api/v1 operation requires it yet: webhook endpoints are registered in Narrareach Settings → Integrations → REST API & webhooks, not with a token.'
        research:read: Read transcripts that were already requested (GET /api/v1/transcripts/{id}) and list topic suggestions (GET /api/v1/topics). Does not use the transcript allowance.
        research:write: Request transcripts of YouTube videos, podcast episodes, and audio files (POST /api/v1/transcripts), which uses the daily transcript allowance. Also reads them.
externalDocs:
  description: Connector and API setup
  url: https://www.narrareach.com/api-docs