Mojeeb AI Notes API

A contact's timeline of notes.

GitHub OpenAPI

Operations 4

GET /v1/agents/{agentId}/contacts/{contactId}/notes List a contact's notes #
POST /v1/agents/{agentId}/contacts/{contactId}/notes Add a note to a contact #
PATCH /v1/agents/{agentId}/contacts/{contactId}/notes/{noteId} Edit a note #
DELETE /v1/agents/{agentId}/contacts/{contactId}/notes/{noteId} Delete a note #

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/mojeeb-app:mojeeb-app-notes-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

mojeeb-app-notes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mojeeb App Notes API
  version: 1.29.1
  contact:
    name: Mojeeb support
    url: https://dashboard.mojeeb.app
  description: 'Operations tagged Notes across 2 of this provider''s published API definitions: openapi.yaml, mojeeb-app-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.mojeeb.app
  description: Production
security:
- bearerAuth: []
- oauth2: []
tags:
- name: Notes
  description: A contact's timeline of notes.
paths:
  /v1/agents/{agentId}/contacts/{contactId}/notes:
    get:
      operationId: listContactNotes
      x-scope: notes:read
      tags:
      - Notes
      summary: List a contact's notes
      description: 'The contact''s timeline, newest first: notes written by people and keys (`user_note`)

        and the status changes Mojeeb records when one of the contact''s leads moves

        (`status_change`, read-only).'
      parameters:
      - $ref: '#/components/parameters/AgentId'
      - $ref: '#/components/parameters/ContactId'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/CorrelationIdRequest'
      responses:
        '200':
          description: A page of notes.
          headers:
            X-Correlation-ID:
              $ref: '#/components/headers/CorrelationIdResponse'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotePage'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ContactNotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    post:
      operationId: createContactNote
      x-scope: notes:write
      tags:
      - Notes
      summary: Add a note to a contact
      description: 'The note is signed by the person who created the API key; the team sees it on the

        contact''s timeline in the dashboard.'
      parameters:
      - $ref: '#/components/parameters/AgentId'
      - $ref: '#/components/parameters/ContactId'
      - $ref: '#/components/parameters/CorrelationIdRequest'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NoteTextRequest'
      responses:
        '201':
          description: The note.
          headers:
            X-Correlation-ID:
              $ref: '#/components/headers/CorrelationIdResponse'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Note'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ContactNotFound'
        '413':
          $ref: '#/components/responses/RequestTooLarge'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    servers:
    - url: https://api.mojeeb.app
      description: Production
  /v1/agents/{agentId}/contacts/{contactId}/notes/{noteId}:
    patch:
      operationId: updateContactNote
      x-scope: notes:write
      tags:
      - Notes
      summary: Edit a note
      description: 'Rewrites the note''s text. Only its author may: a key can edit the notes of the person

        who created the key (`403 not_note_author` otherwise). Notes Mojeeb records, such as

        status changes, can''t be changed (`403 system_note_read_only`).'
      parameters:
      - $ref: '#/components/parameters/AgentId'
      - $ref: '#/components/parameters/ContactId'
      - $ref: '#/components/parameters/NoteId'
      - $ref: '#/components/parameters/CorrelationIdRequest'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NoteTextRequest'
      responses:
        '200':
          description: The note as it now is.
          headers:
            X-Correlation-ID:
              $ref: '#/components/headers/CorrelationIdResponse'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Note'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/NoteForbidden'
        '404':
          $ref: '#/components/responses/NoteNotFound'
        '413':
          $ref: '#/components/responses/RequestTooLarge'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    delete:
      operationId: deleteContactNote
      x-scope: notes:write
      tags:
      - Notes
      summary: Delete a note
      description: Same rules as editing (`403 not_note_author`, `403 system_note_read_only`).
      parameters:
      - $ref: '#/components/parameters/AgentId'
      - $ref: '#/components/parameters/ContactId'
      - $ref: '#/components/parameters/NoteId'
      - $ref: '#/components/parameters/CorrelationIdRequest'
      responses:
        '204':
          description: Deleted.
          headers:
            X-Correlation-ID:
              $ref: '#/components/headers/CorrelationIdResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/NoteForbidden'
        '404':
          $ref: '#/components/responses/NoteNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    servers:
    - url: https://api.mojeeb.app
      description: Production
components:
  responses:
    NoteForbidden:
      description: '`insufficient_scope` (the key lacks the scope in this operation''s `x-scope`),

        `agent_not_authorized` (the key is limited to other agents), `not_note_author` (someone

        other than the key''s creator wrote the note) or `system_note_read_only` (Mojeeb recorded

        it, such as a status change).

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            insufficient_scope:
              summary: A key without this operation's scope (here notes:write)
              value:
                error:
                  type: permission_error
                  code: insufficient_scope
                  message: This API key does not have the 'notes:write' scope.
                  required_scope: notes:write
                  correlation_id: req_01KQE...
            agent_not_authorized:
              value:
                error:
                  type: permission_error
                  code: agent_not_authorized
                  message: This API key is not authorized for this agent.
                  correlation_id: req_01KQE...
            not_note_author:
              value:
                error:
                  type: permission_error
                  code: not_note_author
                  message: You can only edit your own notes.
                  correlation_id: req_01KQE...
            system_note_read_only:
              value:
                error:
                  type: permission_error
                  code: system_note_read_only
                  message: Notes Mojeeb records, such as status changes, can't be changed.
                  correlation_id: req_01KQE...
    Unauthorized:
      description: 'Authentication failed. Single `code` (`invalid_api_key`) covers every

        sub-case: missing header, wrong scheme, malformed, unknown, revoked or

        expired key. The `message` field disambiguates for humans debugging.

        One exception: when the key could not be checked because of a server-side

        fault, the status is still 401 but `type` is `internal_error` and `code`

        is `internal_server_error`; retry with backoff.

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
        WWW-Authenticate:
          schema:
            type: string
            example: Bearer realm="Mojeeb Public API"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: authentication_error
              code: invalid_api_key
              message: The API key is invalid, malformed, or revoked.
              correlation_id: req_01KQER73VQBSZK5RPVZCPW221V
    InternalError:
      description: 'Unexpected server-side failure. Retry with exponential backoff. If

        the failure persists, send us the `correlation_id`.

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: internal_error
              code: internal_server_error
              message: Something went wrong. Please try again.
              correlation_id: req_01KQE...
    NoteNotFound:
      description: '`not_found` when the contact isn''t one of this agent''s contacts, or the note isn''t one of

        the contact''s notes; `agent_not_found` when the agent is not one of your company''s agents.

        `endpoint_not_found` when an id in the path isn''t a UUID.

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            not_found:
              value:
                error:
                  type: not_found_error
                  code: not_found
                  message: Note not found.
                  correlation_id: req_01KQE...
            contact_not_found:
              summary: The contact in the path
              value:
                error:
                  type: not_found_error
                  code: not_found
                  message: Contact not found.
                  correlation_id: req_01KQE...
            agent_not_found:
              value:
                error:
                  type: not_found_error
                  code: agent_not_found
                  message: Agent not found.
                  correlation_id: req_01KQE...
    ValidationError:
      description: '`invalid_request_body` when the body isn''t valid JSON, a field has the wrong type or format, or a field breaks a limit in its schema; `param` names the field. A query parameter that doesn''t parse is `invalid_request_body` too.

        `invalid_request` for a rule beyond the format, such as a note that is only spaces or a

        `cursor` this list didn''t give out.

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            invalid_request_body:
              value:
                error:
                  type: validation_error
                  code: invalid_request_body
                  message: The Text field is required.
                  param: text
                  correlation_id: req_01KQE...
            invalid_request:
              summary: A cursor this list didn't give out
              value:
                error:
                  type: validation_error
                  code: invalid_request
                  message: The cursor is not one this API returned.
                  correlation_id: req_01KQE...
    RequestTooLarge:
      description: The request body is larger than 1 MB.
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: validation_error
              code: request_body_too_large
              message: The request body is too large.
              correlation_id: req_01KQE...
    ContactNotFound:
      description: '`not_found` when the contact isn''t one of this agent''s contacts; `agent_not_found` when the

        agent is not one of your company''s agents. `endpoint_not_found` when an id in the path isn''t a UUID.

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            not_found:
              value:
                error:
                  type: not_found_error
                  code: not_found
                  message: Contact not found.
                  correlation_id: req_01KQE...
            agent_not_found:
              value:
                error:
                  type: not_found_error
                  code: agent_not_found
                  message: Agent not found.
                  correlation_id: req_01KQE...
    Forbidden:
      description: 'Authenticated, but not allowed: `insufficient_scope` (the key lacks the scope in this

        operation''s `x-scope`) or `agent_not_authorized` (the key is limited to other agents).

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            insufficient_scope:
              summary: A key without this operation's scope (here leads:write)
              value:
                error:
                  type: permission_error
                  code: insufficient_scope
                  message: This API key does not have the 'leads:write' scope.
                  required_scope: leads:write
                  correlation_id: req_01KQE...
            agent_not_authorized:
              value:
                error:
                  type: permission_error
                  code: agent_not_authorized
                  message: This API key is not authorized for this agent.
                  correlation_id: req_01KQE...
    ServiceUnavailable:
      description: 'Mojeeb couldn''t check access because of a temporary fault: the key''s,

        or on `assignLead` and `assignConversation` the teammate''s. Nothing was

        changed. Retry with backoff.

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: internal_error
              code: access_unavailable
              message: Access check is temporarily unavailable. Please try again.
              correlation_id: req_01KQE...
    RateLimited:
      description: 'Per-key rate limit hit. Default is 60/min/key; an endpoint with an

        `x-rate-limit-per-minute` of its own counts in a budget of its own

        (today the WhatsApp template endpoints, `sendBroadcast`, `retryBroadcast`, `inviteMember`,

        `resendInvitation`, `uploadAttachmentMedia`, `importAttachmentMedia`, `createUpload` and

        `importSavedReplyMedia`, which share one that allows 10/min/key,

        `sendConversationMessage`, which allows 20/min/key; `putUploadContent` takes no key and

        allows the default 60/min per IP address), and its `429`

        reports that limit in `X-RateLimit-Limit`. `Retry-After` tells you when to retry;

        `X-RateLimit-Reset` is the Unix timestamp of the next window.


        > Per-success-response `X-RateLimit-*` headers are a known gap; on

        > 2xx responses these headers are NOT currently emitted. Customers

        > should rely on 429 + `Retry-After` for backoff signals.

        '
      headers:
        X-Correlation-ID:
          $ref: '#/components/headers/CorrelationIdResponse'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            rate_limit_exceeded:
              value:
                error:
                  type: rate_limit_error
                  code: rate_limit_exceeded
                  message: Too many requests. Try again in 60 seconds.
                  correlation_id: req_01KQE...
  headers:
    RateLimitLimit:
      description: The per-minute request limit of the endpoint called. Every key has the same limits today.
      schema:
        type: integer
        example: 60
    RateLimitRemaining:
      description: Remaining requests in the current window. `0` on rejection.
      schema:
        type: integer
        example: 0
    CorrelationIdResponse:
      description: Correlation id for this request — paste into support tickets.
      schema:
        type: string
        example: req_01KQEQT0FYHGVREWMR6669CX2K
    RateLimitReset:
      description: Unix timestamp at which the current window resets.
      schema:
        type: integer
        example: 1730212354
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        example: 60
  parameters:
    Cursor:
      name: cursor
      in: query
      required: false
      description: Opaque cursor from the previous page's `next_cursor`. Omit for the first page. A cursor the API didn't return is `422 invalid_request`.
      schema:
        type: string
    CorrelationIdRequest:
      name: X-Correlation-ID
      in: header
      required: false
      description: 'Optional client-supplied trace id. If omitted we generate one. Up to

        128 characters: letters, digits, `_` and `-`. An id that breaks these

        rules is ignored without an error and we generate one instead, so read

        the id back from the `X-Correlation-ID` response header. Echoed in

        that header and in every error body.

        '
      schema:
        type: string
        maxLength: 128
    Limit:
      name: limit
      in: query
      required: false
      description: Page size, 1 to 100 (values outside are clamped). Default 20.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    NoteId:
      name: noteId
      in: path
      required: true
      description: A note on the contact's timeline.
      schema:
        type: string
        format: uuid
    AgentId:
      name: agentId
      in: path
      required: true
      description: 'The agent the resource belongs to. Another company''s agent, or the nil UUID, is

        `404 agent_not_found`; an agent outside the key''s agent list is

        `403 agent_not_authorized`.

        '
      schema:
        type: string
        format: uuid
    ContactId:
      name: contactId
      in: path
      required: true
      description: A contact of the agent. Another agent's contact is `404 not_found`.
      schema:
        type: string
        format: uuid
  schemas:
    NoteTextRequest:
      type: object
      required:
      - text
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 5000
          description: The note. Text that is only spaces is `422 invalid_request`.
      example:
        text: Asked for a call back on Sunday.
    NotePage:
      allOf:
      - $ref: '#/components/schemas/CursorPage'
      - type: object
        properties:
          items:
            type: array
            items:
              $ref: '#/components/schemas/Note'
    Note:
      type: object
      required:
      - id
      - contact_id
      - type
      - text
      - author_id
      - author_name
      - edited
      - created_at
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        contact_id:
          type: string
          format: uuid
        type:
          type: string
          description: '`user_note`: written by a person or a key. `status_change`: recorded by Mojeeb when one of the contact''s leads changes status, and read-only. New kinds may appear.'
          example: user_note
        text:
          type: string
        author_id:
          type:
          - string
          - 'null'
          format: uuid
          description: 'The person who wrote it; for a key, the person who created the key. Null for automation or a removed account. Its name: `listAgentMembers`, while that person is in your organization.'
        author_name:
          type: string
        edited:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      example:
        id: 0b1c2d3e-4f50-6172-8394-a5b6c7d8e9f0
        contact_id: 6f9619ff-8b86-d011-b42d-00c04fc964ff
        type: user_note
        text: Asked for a call back on Sunday.
        author_id: a1b2c3d4-e5f6-4789-abcd-ef0123456789
        author_name: Nour Example
        edited: false
        created_at: '2026-10-11T12:05:00Z'
        updated_at: '2026-10-11T12:05:00Z'
    CursorPage:
      type: object
      description: The shape the paginated lists (contacts, notes, leads) share; `items` is typed per endpoint.
      required:
      - items
      - next_cursor
      - has_more
      properties:
        items:
          type: array
          items: {}
        next_cursor:
          type:
          - string
          - 'null'
          description: Pass as `cursor` to fetch the next page. `null` on the last page.
        has_more:
          type: boolean
          description: Whether another page follows.
    E164Phone:
      type: string
      pattern: ^\+[1-9]\d{6,14}$
      example: '+15551234567'
      description: 'E.164 international phone number — leading `+`, country code, then

        7–15 digits. No spaces, dashes, or parens.

        '
    ErrorEnvelope:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - type
          - code
          - message
          - correlation_id
          properties:
            type:
              type: string
              description: 'Stable category for catch blocks: `authentication_error`,

                `permission_error`, `validation_error`, `idempotency_error`,

                `rate_limit_error`, `quota_error`, `conflict_error`,

                `not_found_error` or `internal_error`. Forever-additive: new

                types may appear, so keep a default branch.

                '
            code:
              type: string
              description: 'Stable, specific reason. **Branch on this**, not on `message`.

                Forever-additive: new codes may appear without notice, so keep

                your switch/match statements default-safe. Codes `/v1/` returns

                today: `invalid_api_key`, `invalid_token`, `insufficient_scope`, `agent_not_authorized`, `agent_not_granted`, `shared_with_other_agents`, `feature_not_available`, `not_note_author`, `system_note_read_only`, `agent_not_found`, `not_found`, `lead_capture_not_found`, `ticket_capture_not_found`, `message_not_found`, `endpoint_not_found`, `invalid_request_body`, `invalid_request`, `invalid_date_range`, `no_settings`, `field_not_writable`, `unknown_timezone`, `invalid_ai_schedule`, `invalid_follow_up_platform`, `invalid_follow_up_steps`, `assignee_not_allowed`, `system_field`, `lead_field_limit_reached`, `ticket_field_limit_reached`, `connection_inactive`, `connection_needs_reconnection`, `field_key_taken`, `mobile_taken`, `too_many_leads`, `too_many_tickets`, `login_shared`, `tool_not_tested`, `comment_already_hidden`, `comment_not_hidden`, `platform_hide_failed`, `channel_not_supported`, `messaging_window_closed`, `no_current_usage_period`, `usage_periods_overlap`, `request_body_too_large`, `invalid_agent_id`, `invalid_phone_number`, `invalid_from_phone`, `from_phone_not_found_for_agent`, `recipient_required`, `recipient_conflict`, `recipient_not_found`, `auth_template_needs_phone`, `template_header_media_url_invalid`, `template_not_found`, `template_not_found_for_language`, `template_rejected`, `template_name_taken`, `template_limit_reached`, `template_status_not_allowed`, `template_edit_limit_reached`, `template_in_use_by_broadcast`, `template_reserved`, `template_delete_locks_name`, `template_not_approved`, `template_not_broadcastable`, `broadcast_still_sending`, `insufficient_role`, `owner_only`, `self_edit`, `self_remove`, `already_member`, `invitation_not_pending`, `unknown_agent`, `too_many_agents`, `attachment_type_locked`, `attachment_has_no_media`, `too_many_active_attachments`, `invalid_media`, `attachment_media_url_invalid`, `upload_not_found`, `upload_token_invalid`, `upload_already_written`, `upload_too_large`, `upload_size_mismatch`, `upload_type_not_allowed`, `upload_url_invalid`, `media_url_invalid`, `idempotency_key_in_progress`, `idempotency_key_in_use_with_different_params`, `idempotency_unknown_outcome`, `unknown_send_outcome`, `rate_limit_exceeded`, `test_rate_limited`, `video_send_rate_limited`, `message_limit_exceeded`, `test_chat_busy`, `meta_unavailable`, `media_processing_busy`, `access_unavailable`, `internal_server_error`. The errors guide explains each.

                '
            message:
              type: string
              description: 'Human-readable explanation. Wording may change without

                notice — never use as a key.

                '
            correlation_id:
              type: string
              description: 'Request id for our logs. Always present. Save and quote

                this when filing support tickets.

                '
            param:
              type: string
              description: 'Optional. The offending field''s name when the error is a

                field-level validation failure.

                '
            required_scope:
              type: string
              description: 'Optional. Set on `insufficient_scope` errors — the scope

                the request needed.

                '
            available_phones:
              type: array
              items:
                $ref: '#/components/schemas/E164Phone'
              description: 'Optional. Set on `from_phone_not_found_for_agent` —

                the agent''s active WhatsApp numbers, in E.164.

                '
            available_templates:
              type: array
              items:
                type: string
              description: 'Optional. Set on `template_not_found`: the names of the connection''s templates, whatever their status (`listWhatsAppTemplates` shows each one''s status).'
            available_languages:
              type: array
              items:
                type: string
              description: 'Optional. Set on `template_not_found_for_language`: the languages the template exists in, whatever their status.'
            limit:
              type: integer
              description: 'Optional. Set on `message_limit_exceeded`: the plan''s message limit for the period.'
            used:
              type: integer
              description: 'Optional. Set on `message_limit_exceeded`: messages used in the period.'
            resets_at:
              type: string
              format: date-time
              description: 'Optional. Set on `message_limit_exceeded`: when the period resets.'
            original_correlation_id:
              type: string
              description: 'Optional. Set on `idempotency_key_in_use_with_different_params`

                — points to the prior request that locked the key, so you

                can find it in your own logs.

                '
            details:
              type: object
              description: 'Optional. Set on `mobile_taken`: the contact that already has the

                number, as `contact_id` and `contact_name` (null when it has no

                name). Left out when that contact can''t be named.

                '
              properties:
                contact_id:
                  type: string
                  format: uuid
                contact_name:
                  type:
                  - string
                  - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: mk_live_22-base62-chars_10-char-checksum
      description: 'Server-to-server API key issued from the Mojeeb dashboard.

        Treat like a database password — store in a secret manager,

        never embed in client-side code.

        '
    oauth2:
      type: oauth2
      description: 'Sign in from an AI assistant (claude.ai, ChatGPT, Claude Code, Cursor) as a person. The

        assistant acts with that person''s own access in Mojeeb, in the company they connected, until

        the connection ends (the assistant signs out, or the person leaves the company). Public clients

        with PKCE (S256); access tokens

        last an hour and refresh tokens rotate on every use. Metadata:

        `https://api.mojeeb.app/.well-known/oauth-authorization-server`.

        '
      flows:
        authorizationCode:
          authorizationUrl: https://api.mojeeb.app/oauth/authorize
          tokenUrl: https://api.mojeeb.app/oauth/token
          refreshUrl: https://api.mojeeb.app/oauth/token
          scopes:
            read: 'Read only: endpoints whose scope is a `…:read` scope.'
            full: 'Read and change: every endpoint, with the person''s own access.'
x-refined-from:
- openapi.yaml
- mojeeb-app-openapi.yaml
x-provenance:
  method: harvested
  publisher: Mojeeb AI
  source: https://api.mojeeb.app/v1/openapi.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)