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

# Get one archived email of an application

> Returns the body, recipients and attachments of a single archived email attached to the application.



## OpenAPI

````yaml /api-reference/openapi.json get /application/{applicationid}/email/{emailid}
openapi: 3.0.3
info:
  title: JobAffinity REST API
  version: '1.13'
  description: >
    JobAffinity REST API for managing jobs, candidates, applications, and
    recruitment processes.


    ## Authentication

    All endpoints require HTTP Basic Authentication.


    ## Versioning

    Current version: 1.13


    See `/restapi/changelog` for version history and changes.
  contact:
    name: JobAffinity API Support
servers:
  - url: https://jobaffinity.fr/restapi/v1
    description: REST API v1
  - url: https://jobaffinity.fr/restapi
    description: REST API root (for changelog)
security:
  - basicAuth: []
tags:
  - name: API Info
    description: API metadata and changelog
  - name: Account
    description: Authenticated user identity and organisation membership
  - name: Jobs
    description: Job listings and details
  - name: Candidates
    description: Candidate information
  - name: Applications
    description: Job applications
  - name: Processes
    description: Recruitment processes and steps
  - name: Notes
    description: Candidate notes
  - name: Templates
    description: Recorded email templates
  - name: Questionnaires
    description: Questionnaire answers
  - name: Webhooks
    description: Webhook tasks
  - name: Job Application Submission
    description: >-
      Submit candidate applications to a job posting via the apply URL provided
      in the job feed. The authentication token is embedded in the URL — no
      additional credentials are required.
paths:
  /application/{applicationid}/email/{emailid}:
    get:
      tags:
        - Applications
      summary: Get one archived email of an application
      description: >-
        Returns the body, recipients and attachments of a single archived email
        attached to the application.
      operationId: getApplicationEmail
      parameters:
        - name: applicationid
          in: path
          required: true
          description: Application ID
          schema:
            type: integer
        - name: emailid
          in: path
          required: true
          description: Archived email ID
          schema:
            type: integer
        - $ref: '#/components/parameters/organisationFilterParam'
      responses:
        '200':
          description: Archived email detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationEmail'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          description: No such email on this application
components:
  parameters:
    organisationFilterParam:
      name: organisation_id
      in: query
      description: >-
        Narrow the read to a single organisation. Without it, the caller keeps
        its full visibility.
      schema:
        type: integer
  schemas:
    ApplicationEmail:
      type: object
      description: Full detail of one archived email of the application.
      properties:
        _status:
          type: string
          enum:
            - OK
            - INVALID
        _schema:
          type: string
          format: uri
        id:
          type: integer
          description: Archived email identifier
        date:
          type: string
          format: date-time
        subject:
          type: string
        sender:
          type: string
          description: The From address.
        recipient:
          type: string
          description: The delivered-to address, empty for an outgoing email.
        received:
          type: boolean
          description: True when the email came from the candidate.
        to:
          type: string
          description: Comma-separated To addresses.
        cc:
          type: string
          description: Comma-separated Cc addresses.
        content:
          type: string
          description: Sanitized HTML or plain-text body, empty when unreadable.
        attachments:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              size:
                type: string
                description: Human-readable file size.
  responses:
    UnauthorizedError:
      description: Authentication information is missing or invalid
      headers:
        WWW-Authenticate:
          schema:
            type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic Authentication with API credentials

````