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

# Export contacts

> Returns contacts (name, status, merge attributes, dates) as JSON for CSV export. With ?audienceId, scopes to that audience’s members.



## OpenAPI

````yaml /openapi.json get /marketing/contacts/export
openapi: 3.0.0
info:
  title: JetEmail API
  version: 1.0.0
  description: API documentation for JetEmail's transactional email service.
servers:
  - url: https://api.jetemail.com
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Email
    description: Send transactional email
  - name: Outbound
    description: 'Outbound sending: keys, SMTP users, domains, logs, suppression'
  - name: Inbound
    description: Inbound routing, domains and forward destinations
  - name: Marketing
    description: >-
      Marketing suite: templates, audiences, contacts, broadcasts, themes,
      assets
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /marketing/contacts/export:
    get:
      tags:
        - Marketing
      summary: Export contacts
      description: >-
        Returns contacts (name, status, merge attributes, dates) as JSON for CSV
        export. With ?audienceId, scopes to that audience’s members.
      parameters:
        - name: audienceId
          in: query
          schema:
            type: string
          description: Scope the export to one audience
      responses:
        '200':
          description: Contacts
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  contacts:
                    type: array
                    items:
                      $ref: '#/components/schemas/MarketingContact'
components:
  schemas:
    MarketingContact:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
          example: jane@example.com
        first_name:
          type: string
        last_name:
          type: string
        attributes:
          type: string
          description: JSON object of custom merge fields
        status:
          type: string
          enum:
            - subscribed
            - unsubscribed
            - bounced
            - complained
          example: subscribed
        created_at:
          type: integer
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````