> ## 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 email addresses

> List the workspace’s inbound email addresses you may see, oldest first: each with where its mail goes (an agent conversation, a procedure trigger, or an underwriting program) and who can send to it. Filter by destination kind, or by programId. Pass nextCursor as cursor with the same filters to continue. An agent or procedure address needs workspace administration; a program address needs workspace administration and edit on the program to change, and view on the program to read.



## OpenAPI

````yaml /openapi.json get /email/addresses
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:
    get:
      tags:
        - Email addresses
      summary: List email addresses
      description: >-
        List the workspace’s inbound email addresses you may see, oldest first:
        each with where its mail goes (an agent conversation, a procedure
        trigger, or an underwriting program) and who can send to it. Filter by
        destination kind, or by programId. Pass nextCursor as cursor with the
        same filters to continue. An agent or procedure address needs workspace
        administration; a program address needs workspace administration and
        edit on the program to change, and view on the program to read.
      operationId: listEmailAddresses
      parameters:
        - schema:
            type: string
            enum:
              - agent
              - procedure
              - program
          required: false
          name: kind
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 128
          required: false
          name: programId
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          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 addresses and the next cursor, or null at the end.
          content:
            application/json:
              schema:
                type: object
                properties:
                  addresses:
                    type: array
                    items:
                      $ref: '#/components/schemas/V2EmailAddress'
                  nextCursor:
                    type: string
                    nullable: true
                    description: Cursor for the next page, or null on the last page.
                required:
                  - addresses
                  - 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:
    V2EmailAddress:
      type: object
      properties:
        id:
          type: string
          format: uuid
        inboxId:
          type: string
          nullable: true
          format: uuid
          description: The dedicated inbox that receives mail for this address.
        address:
          type: string
          nullable: true
          format: email
          description: >-
            The email address, such as
            quiet-heron-a4b1c293e580@intake.effectiveai.app; null while this
            environment cannot reach it.
        config:
          type: object
          nullable: true
          properties:
            allowExternalSenders:
              type: boolean
              description: >-
                Allow people outside this workspace to send. When false, only
                authenticated workspace members may send.
          required:
            - allowExternalSenders
          additionalProperties: false
          description: >-
            Sender settings, or null for an address without configurable sender
            settings.
        name:
          type: string
          nullable: true
          minLength: 1
          maxLength: 20
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
          description: The name of a legacy address, when present.
        destination:
          $ref: '#/components/schemas/V2EmailDestination'
        createdBy:
          type: string
          description: >-
            Who made the address, or last turned a program’s on: extraction
            started by email to a program reads the program as them.
        createdAt:
          type: string
          format: date-time
        rotatedAt:
          type: string
          nullable: true
          format: date-time
          description: >-
            When a historical shared address last changed; null for dedicated
            inboxes.
      required:
        - id
        - address
        - config
        - name
        - destination
        - createdBy
        - createdAt
        - rotatedAt
      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
    V2EmailDestination:
      oneOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - agent
            agentName:
              type: string
              minLength: 1
              description: >-
                Exact registered agent preset name, such as general-agent. Omit
                to use general-agent.
            projectId:
              type: string
              format: uuid
              description: >-
                A live Project in this workspace the conversation starts in.
                Omit to start without one.
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - procedure
            procedureTriggerId:
              type: string
              format: uuid
              description: >-
                A procedure trigger in this workspace that starts on
                email_received (scope org), with a valid run-as user. Each email
                starts one run of it.
          required:
            - kind
            - procedureTriggerId
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - program
            programId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                A released underwriting guideline on the desk. The first email
                of a thread makes a submission of it; replies from the same
                sender join it.
          required:
            - kind
            - programId
          additionalProperties: false
      description: >-
        Where mail to the address goes: an agent conversation (agent), one run
        of a procedure trigger (procedure), or a submission of an underwriting
        program (program).
    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.