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

# List an address’s email

> List every email the address received, newest first: those still pending, those delivered with what their destination did (for a program, the submission and whether its documents started an extraction, or why not), and those held. status narrows the list. Pass nextCursor as cursor to continue. A program address’s email needs edit on the program; another address’s needs workspace administration.



## OpenAPI

````yaml /openapi.json get /email/addresses/{addressId}/emails
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.canary.effectiveai.app/api/v2
    description: Canary
security:
  - bearerAuth: []
paths:
  /email/addresses/{addressId}/emails:
    get:
      tags:
        - Email addresses
      summary: List an address’s email
      description: >-
        List every email the address received, newest first: those still
        pending, those delivered with what their destination did (for a program,
        the submission and whether its documents started an extraction, or why
        not), and those held. status narrows the list. Pass nextCursor as cursor
        to continue. A program address’s email needs edit on the program;
        another address’s needs workspace administration.
      operationId: listEmailAddressEmails
      parameters:
        - schema:
            type: string
            format: uuid
            description: The address’s id.
          required: true
          description: The address’s id.
          name: addressId
          in: path
        - schema:
            type: string
            enum:
              - pending
              - delivered
              - held
          required: false
          name: status
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          required: false
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 8192
            description: >-
              Opaque nextCursor from this operation. Repeat every other query
              parameter unchanged; a cursor from a different query returns
              invalid_cursor.
          required: false
          description: >-
            Opaque nextCursor from this operation. Repeat every other query
            parameter unchanged; a cursor from a different query returns
            invalid_cursor.
          name: cursor
          in: query
      responses:
        '200':
          description: The email and the next cursor, or null at the end.
          content:
            application/json:
              schema:
                type: object
                properties:
                  emails:
                    type: array
                    items:
                      $ref: '#/components/schemas/V2EmailAddressEmail'
                  nextCursor:
                    type: string
                    nullable: true
                    description: Cursor for the next page, or null on the last page.
                required:
                  - emails
                  - nextCursor
                additionalProperties: false
        '400':
          description: Invalid request, query or cursor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: The required permission is missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: The address or held email is unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '409':
          description: The request conflicts with the address or held email as it stands.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '503':
          description: Email address creation is unavailable in this environment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2EmailAddressEmail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        addressId:
          type: string
          format: uuid
        sender:
          type: string
          nullable: true
          description: The sender’s address; null when it could not be read.
        subject:
          type: string
          nullable: true
          description: The subject; null until the email is delivered.
        receivedAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - pending
            - delivered
            - held
          description: >-
            pending: queued or being retried. delivered: its destination took
            it. held: it reached no destination; see held.
        completedAt:
          type: string
          nullable: true
          format: date-time
        delivery:
          type: object
          nullable: true
          properties:
            submissionId:
              type: string
              nullable: true
              format: uuid
              description: 'For a program address: the submission the email made or joined.'
            extraction:
              type: object
              nullable: true
              properties:
                status:
                  type: string
                  enum:
                    - started
                    - skipped
                    - failed
                  description: >-
                    started: the files started an extraction (or joined the one
                    waiting). skipped: none started; see reason. failed: the
                    start failed; see reason and message.
                extractionId:
                  type: string
                  nullable: true
                  format: uuid
                  description: The extraction started; null otherwise.
                reason:
                  type: string
                  nullable: true
                  description: >-
                    Why none started (no_documents, auto_off,
                    extraction_not_configured, extraction_in_progress, or
                    another refusal code), or the failure’s code; null when
                    started.
                message:
                  type: string
                  nullable: true
                  description: What failed, in words; null otherwise.
              required:
                - status
                - extractionId
                - reason
                - message
              additionalProperties: false
              description: >-
                For a program address: whether the email’s documents started an
                extraction, why not, or why it failed to start.
          required:
            - submissionId
            - extraction
          additionalProperties: false
          description: What the destination did with a delivered email; null otherwise.
        held:
          type: object
          nullable: true
          properties:
            reason:
              type: string
              enum:
                - different_sender
                - spam
                - unauthenticated
                - blocked
                - desk_disabled
                - sender_not_admitted
                - destination_unavailable
                - delivery_failed
            resolution:
              type: string
              nullable: true
              enum:
                - attached
                - created
                - discarded
                - null
          required:
            - reason
            - resolution
          additionalProperties: false
          description: >-
            For a held email: why it was held, and what was done with it (null
            while it waits). Read or resolve it by its id with the held-email
            operations.
      required:
        - id
        - addressId
        - sender
        - subject
        - receivedAt
        - status
        - completedAt
        - delivery
        - held
      additionalProperties: false
    V2CodedError:
      allOf:
        - $ref: '#/components/schemas/V2Error'
        - type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error code. Clients must tolerate unknown future codes.
            details:
              type: array
              items:
                type: object
                properties:
                  location:
                    type: string
                    enum:
                      - path
                      - query
                      - header
                      - body
                  path:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                    maxItems: 12
                  code:
                    type: string
                    enum:
                      - required
                      - invalid_type
                      - invalid_value
                      - unknown_field
                  message:
                    type: string
                    minLength: 1
                    maxLength: 200
                required:
                  - location
                  - path
                  - code
                  - message
              minItems: 1
              maxItems: 20
              description: Bounded safe validation issues; may omit some invalid fields.
            requestId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                Existing server correlation for this HTTP attempt, when
                available.
            dataset:
              type: string
              enum:
                - naic
                - osha
              description: Dataset needed for dataset_not_enabled.
            businessCode:
              type: string
              description: The rater’s own refusal code, for business_rejection.
            violations:
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                    description: Authored or built-in constraint code
                  message:
                    type: string
                    description: Authored message for the failed constraint
                  path:
                    type: string
                    description: Input path of the offending value; empty for the request
                  value:
                    nullable: true
                    description: Offending input value, size-bounded by the runtime
                  constraint:
                    type: string
                    description: The constraint the value failed, as text
                  cite:
                    type: string
                    nullable: true
                    description: >-
                      Filing citation of the constraint, when the source cites
                      one
                required:
                  - code
                  - message
                  - path
                  - value
                  - constraint
                  - cite
                additionalProperties: false
              maxItems: 256
              description: >-
                Each input constraint the submission failed, for invalid_inputs
                and business_rejection.
            violationsTruncated:
              type: boolean
              description: >-
                True when the rater reported more violations than violations
                holds.
            executionId:
              type: string
              description: >-
                The recorded execution of a failed rating, for rater rating
                failures.
            accessUrl:
              type: string
              nullable: true
              format: uri
              description: Not currently returned.
          required:
            - code
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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