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

# Export consents as CSV

> The same rows as `GET /v1/consents`, as a CSV download (`consent_id, contact_id, channel, value, purpose, source, captured_at, recorded_at, recorded_by, revoked_at, revoked_reason, evidence`). Same filters. Requires `read`.



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/consents/export
openapi: 3.1.0
info:
  title: Sendbaze API
  version: '1.0'
  description: >
    Transactional email and SMS for Africa. Send from your own domain through
    Amazon SES in Cape Town.

    Every send returns an id immediately; delivery is reported by webhook and in
    the dashboard logs.
  contact:
    name: Sendbaze support
    email: support@sendbaze.com
    url: https://www.sendbaze.com
servers:
  - url: https://api.sendbaze.com
security:
  - bearerAuth: []
tags:
  - name: Emails
  - name: Templates
  - name: Domains
  - name: Suppressions
  - name: Webhooks
  - name: SMS
  - name: Contacts
  - name: Senders
  - name: Usage
paths:
  /v1/consents/export:
    get:
      tags:
        - Contacts
      summary: Export consents as CSV
      description: >-
        The same rows as `GET /v1/consents`, as a CSV download (`consent_id,
        contact_id, channel, value, purpose, source, captured_at, recorded_at,
        recorded_by, revoked_at, revoked_reason, evidence`). Same filters.
        Requires `read`.
      operationId: exportConsents
      parameters:
        - $ref: '#/components/parameters/ConsentValue'
        - $ref: '#/components/parameters/ConsentContactId'
        - $ref: '#/components/parameters/ConsentChannel'
        - $ref: '#/components/parameters/ConsentActive'
      responses:
        '200':
          description: CSV
          content:
            text/csv:
              schema:
                type: string
components:
  parameters:
    ConsentValue:
      name: value
      in: query
      description: Exact email address or E.164 number (URL-encode the plus sign as %2B).
      schema:
        type: string
        maxLength: 254
    ConsentContactId:
      name: contactId
      in: query
      schema:
        type: string
    ConsentChannel:
      name: channel
      in: query
      schema:
        type: string
        enum:
          - email
          - sms
    ConsentActive:
      name: active
      in: query
      description: true returns unrevoked rows only.
      schema:
        type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key from the dashboard. `sk_live_…` sends; `sk_test_…` validates
        and returns ids without sending.

````

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