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

# List certificate requests

> Lists the certificate requests your customers emailed in, newest first. Page with `limit` + `starting_after` (pass the last request's `id`). Repeat `customer_id` to match any of several customers. Emails Taxwire could not route to your organization are not listed.

Each request is one email a customer sent in, with its files. Use this endpoint to see that a customer sent something, even when no certificate came of it.

* `documents` lists the files Taxwire kept from the request, oldest first. It keeps PDFs and images. Other file types are not listed.
* A file's `certificate_id` is the certificate Taxwire created from that file. It is `null` when Taxwire created none, for example for a logo.
* `certificate_ids` lists the certificates Taxwire created for the request. Each one normally comes from a file in `documents`. When the email had no attachments, Taxwire can still create one empty certificate for the request, so its team has a record to review and fill in.
* Read any certificate in `certificate_ids` with [Retrieve certificate](https://apidocs.taxwire.com/api-reference/certificates/retrieve.md). Until Taxwire links it to a customer, its `customer_id` is `null`.
* `customer_id` is `null` until the request is linked to one of your customers, for example when the sender's address isn't on any customer.
* A request can grow. When the customer replies to an email Taxwire sent about it, the files on the reply are added to the same request. Any other email opens a new request.
* A `completed` request can still include a certificate that was rejected or is still in review. Check each certificate's own `status` with Retrieve certificate.
* Taxwire closes a request when nothing more will come of it, for example because the certificate in it was rejected or the email had no certificate. Its `status` is then `closed`.
* To filter by several customers, pass `customer_id` once for each, for example `?customer_id=cust_1&customer_id=cust_2`.


## OpenAPI

````yaml GET /certificates/requests
openapi: 3.1.0
info:
  title: Taxwire Public API
  version: 0.1.0
servers: []
security: []
paths:
  /certificates/requests:
    get:
      tags:
        - Certificates
      summary: List Certificate Requests
      description: >-
        Lists the certificate requests your customers emailed in, newest first.
        Page with `limit` + `starting_after` (pass the last request's `id`).
        Repeat `customer_id` to match any of several customers. Emails Taxwire
        could not route to your organization are not listed.
      operationId: list_requests_certificates_requests_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            description: Page size, between 1 and 1000.
            default: 100
            title: Limit
          description: Page size, between 1 and 1000.
        - name: starting_after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Return requests after this one. Pass the `id` of the last request
              from the previous page to fetch the next page.
            title: Starting After
          description: >-
            Return requests after this one. Pass the `id` of the last request
            from the previous page to fetch the next page.
        - name: customer_id
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                maxItems: 100
              - type: 'null'
            description: Only requests linked to these customers. At most 100 values.
            title: Customer Id
          description: Only requests linked to these customers. At most 100 values.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestsListResponse'
              example:
                object: list
                url: /certificates/requests
                has_more: false
                data:
                  - id: intreq_01J9Z8Q4E7K2M3N4P5R6S7T8U9
                    status: needs_review
                    customer_id: cust_01J9Z8Q4E7K2M3N4P5R6S7T8U9
                    from_address: ap@acme.com
                    subject: Resale certificate
                    attachment_count: 2
                    certificate_ids:
                      - cexc_01J9Z8Q4E7K2M3N4P5R6S7T8U9
                    documents:
                      - id: attch_01J9Z8Q4E7K2M3N4P5R6S7T8U9
                        filename: acme-resale-ca.pdf
                        certificate_id: cexc_01J9Z8Q4E7K2M3N4P5R6S7T8U9
                      - id: attch_01J9Z8Q4E7K2M3N4P5R6S7T8V0
                        filename: logo.png
                    created_at: '2026-11-30T15:02:00Z'
                    updated_at: '2026-11-30T15:04:10Z'
        '422':
          description: Validation Error - Invalid query parameter
          content:
            application/json:
              example:
                errors:
                  - status: '422'
                    code: validation_error
                    title: Validation Error
                    detail: Input should be less than or equal to 1000
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded. Try again later.
          headers:
            Retry-After:
              description: Time in seconds until the rate limit resets
              schema:
                type: string
            X-RateLimit-Limit:
              description: The rate limit ceiling for the given request
              schema:
                type: string
            X-RateLimit-Remaining:
              description: The number of requests remaining in the time window
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - status: '429'
                    code: rate_limit_error
                    title: Too Many Requests
                    detail: Rate limit exceeded
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                errors:
                  - status: '500'
                    code: system_internal_error
                    title: Internal Error
                    detail: An unexpected error occurred. Our team has been notified.
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    RequestsListResponse:
      properties:
        object:
          type: string
          title: Object
          default: list
        url:
          type: string
          title: Url
          default: /certificates/requests
        has_more:
          type: boolean
          title: Has More
          description: More results available
          examples:
            - true
            - false
        data:
          items:
            $ref: '#/components/schemas/RequestResource'
          type: array
          title: Data
          description: A page of requests, newest first.
      type: object
      required:
        - has_more
      title: RequestsListResponse
      description: List envelope for GET /certificates/requests, cursor-paged by `id`.
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/Error'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
      description: Standardized JSON:API error response model.
    RequestResource:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the request.
          examples:
            - intreq_01J9Z8Q4E7K2M3N4P5R6S7T8U9
        status:
          type: string
          title: Status
          description: >-
            `needs_review`: received and being worked on. `waiting_on_customer`:
            Taxwire asked the sender for something and is waiting for a reply.
            `completed`: handled; check each certificate's own `status` for its
            review outcome. `closed`: Taxwire closed it, for example because
            nothing in it was a certificate. More values may be added; treat an
            unknown one as still in progress.
          examples:
            - needs_review
        closed_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed Reason
          description: >-
            Why a `closed` request ended, when Taxwire recorded a reason. Null
            otherwise.
          examples:
            - null
        customer_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Customer Id
          description: >-
            The customer the request is linked to. Null until Taxwire matches it
            to one, for example when the sender's address is not on any
            customer.
          examples:
            - cust_01J9Z8Q4E7K2M3N4P5R6S7T8U9
        from_address:
          anyOf:
            - type: string
            - type: 'null'
          title: From Address
          description: The email address the request came from.
          examples:
            - ap@acme.com
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
          description: The subject of the email that opened the request.
          examples:
            - Resale certificate
        attachment_count:
          type: integer
          title: Attachment Count
          description: How many files came in on the request, across every reply.
          examples:
            - 2
        certificate_ids:
          items:
            type: string
          type: array
          title: Certificate Ids
          description: >-
            The certificates made from the request's files. Read them with
            Retrieve Certificate.
          examples:
            - - cexc_01J9Z8Q4E7K2M3N4P5R6S7T8U9
        documents:
          items:
            $ref: '#/components/schemas/RequestDocument'
          type: array
          title: Documents
          description: >-
            The files that came in on the request, oldest first, each with the
            certificate made from it, if any.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Date at which the request was received.
          examples:
            - '2026-11-30T15:02:00Z'
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: >-
            Date at which the request last changed, for example a reply or a
            status change.
          examples:
            - '2026-11-30T15:04:10Z'
      additionalProperties: false
      type: object
      required:
        - id
        - status
        - attachment_count
        - certificate_ids
        - documents
        - created_at
        - updated_at
      title: RequestResource
      description: A certificate request one of your customers emailed in.
    Error:
      properties:
        status:
          type: string
          title: Status
        code:
          type: string
          title: Code
        title:
          type: string
          title: Title
        detail:
          type: string
          title: Detail
        source:
          anyOf:
            - $ref: '#/components/schemas/ErrorSource'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      type: object
      required:
        - status
        - code
        - title
        - detail
      title: Error
      description: Individual JSON:API error object.
    RequestDocument:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the file.
          examples:
            - attch_01J9Z8Q4E7K2M3N4P5R6S7T8U9
        filename:
          type: string
          title: Filename
          description: The file's name as it was sent.
          examples:
            - acme-resale-ca.pdf
        certificate_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Certificate Id
          description: >-
            The certificate made from this file. Null when none was, for example
            a logo or a file that is not a certificate.
          examples:
            - cexc_01J9Z8Q4E7K2M3N4P5R6S7T8U9
            - null
      additionalProperties: false
      type: object
      required:
        - id
        - filename
      title: RequestDocument
      description: One file that came in on the request.
    ErrorSource:
      properties:
        pointer:
          anyOf:
            - type: string
            - type: 'null'
          title: Pointer
      type: object
      title: ErrorSource
      description: Identifies the source of the error, e.g., via a JSON Pointer.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer

````

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