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

# Export bounded contact pages

Requires the opt-in imports/data rollout and an explicitly authorized project. See [agent data workflows](/tutorials/agent-data-operations) for review, idempotency, export pagination, and suppression safeguards.


## OpenAPI

````yaml api-reference/openapi.json POST /exports/contacts
openapi: 3.0.1
info:
  title: Sendrealm API
  description: >-
    API for email, push, audience resources, domains, campaign drafts,
    templates, events, topics, and automations
  license:
    name: MIT
  version: 0.3.0
servers:
  - url: https://api.sendrealm.com
security:
  - bearerAuth: []
paths:
  /exports/contacts:
    post:
      tags:
        - Agent data
      summary: Export bounded contact pages
      operationId: contacts_export
      parameters:
        - name: X-Sendrealm-Project-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpContactExportInput'
      responses:
        '200':
          description: Project-scoped page; pass metadata.next unchanged as after.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/McpContactExportRow'
                  metadata:
                    $ref: '#/components/schemas/McpImportPagination'
                required:
                  - status
                  - data
                  - metadata
                additionalProperties: false
                x-sendrealm-mcp-contract: true
        '403':
          description: Current credential, role or scope denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    McpContactExportInput:
      type: object
      properties:
        limit:
          type: integer
          minimum: 1
          maximum: 500
          default: 100
          description: >-
            Maximum records in this page; response bytes may shorten it. Always
            preserve metadata.next.
        after:
          type: string
          format: uuid
          description: >-
            Opaque next cursor from the previous export page; omit for the first
            page.
        fields:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
          minItems: 1
          maxItems: 100
          default:
            - first_name
            - last_name
          description: >-
            Explicit profile keys to export. ID and email are always included.
            Omitted keys are not exported.
      additionalProperties: false
      x-sendrealm-mcp-contract: true
    McpContactExportRow:
      type: object
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        fields:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/McpJsonValue'
          nullable: true
        error_code:
          type: string
          nullable: true
      required:
        - id
        - email
        - fields
        - error_code
      additionalProperties: false
      x-sendrealm-mcp-contract: true
    McpImportPagination:
      type: object
      properties:
        has_more:
          type: boolean
        next:
          type: string
          nullable: true
        limit:
          type: integer
          minimum: 1
          maximum: 100
      required:
        - has_more
        - next
        - limit
      additionalProperties: false
      x-sendrealm-mcp-contract: true
    Error:
      type: object
      required:
        - status
        - error
      properties:
        status:
          type: integer
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              $ref: '#/components/schemas/JsonValue'
            issues:
              type: array
              items:
                $ref: '#/components/schemas/ValidationIssue'
    McpJsonValue:
      oneOf:
        - type: string
          nullable: true
        - type: number
        - type: boolean
        - type: array
          items:
            $ref: '#/components/schemas/McpJsonValue'
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/McpJsonValue'
      description: >-
        JSON application data. Do not include credentials or unnecessary
        personal data.
      x-sendrealm-mcp-contract: true
    JsonValue:
      oneOf:
        - type: string
          nullable: true
        - type: number
        - type: boolean
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
    ValidationIssue:
      type: object
      required:
        - code
        - path
        - message
      properties:
        code:
          type: string
        path:
          type: string
          nullable: true
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Integration key for backend workloads, or a scoped personal key
        (sr_user_) for account discovery and supported project operations. MCP
        accepts only personal keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.