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

# Email a pass to its holder

> Emails the pass to its holder: the pass’s `email` address gets the email of the pass’s template (its published version), with Add to Apple Wallet and Add to Google Wallet buttons. The email is queued and sent shortly after; each call sends a new email, so call it again to resend. The pass must be `ISSUED`, have an `email`, and its template must have email turned on. Send an `Idempotency-Key` header to make retries safe. Each workspace sends a limited number of pass emails per UTC day; at the limit this returns `429` (`PASS_EMAIL_DAILY_LIMIT_REACHED`) with a `Retry-After` until 00:00 UTC.

Requires the `passes:write` scope on the access token.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/passes/{id}/email
openapi: 3.1.0
info:
  title: Passlet API (Public)
  version: 0.4.1
  description: >-
    Public integration API for Passlet. Every route is callable with a `plt_*`
    access token, and each operation lists the required access-token scope.
  license:
    name: UNLICENSED
    identifier: UNLICENSED
servers:
  - url: https://api.passlet.io
    description: Production
security: []
paths:
  /v1/passes/{id}/email:
    post:
      tags:
        - passes
      summary: Email a pass to its holder
      description: >-
        Emails the pass to its holder: the pass’s `email` address gets the email
        of the pass’s template (its published version), with Add to Apple Wallet
        and Add to Google Wallet buttons. The email is queued and sent shortly
        after; each call sends a new email, so call it again to resend. The pass
        must be `ISSUED`, have an `email`, and its template must have email
        turned on. Send an `Idempotency-Key` header to make retries safe. Each
        workspace sends a limited number of pass emails per UTC day; at the
        limit this returns `429` (`PASS_EMAIL_DAILY_LIMIT_REACHED`) with a
        `Retry-After` until 00:00 UTC.


        Requires the `passes:write` scope on the access token.
      operationId: postV1PassesIdEmail
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: Pass identifier
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 100
          description: >-
            Makes a retry safe: a request with a key this pass was already
            emailed with returns that email (`200`) instead of sending again.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PassEmail'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PassEmail'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    PassEmail:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: Email identifier
        passId:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: Pass identifier
        trigger:
          type: string
          enum:
            - ISSUE
            - MANUAL
          description: >-
            `ISSUE`: sent because the pass was issued. `MANUAL`: sent on
            request.
          example: ISSUE
        status:
          type: string
          enum:
            - QUEUED
            - SENT
            - DELIVERED
            - BOUNCED
            - COMPLAINED
            - FAILED
            - SUPPRESSED
            - LIMITED
          description: >-
            `QUEUED`: waiting to be sent. `SENT`: handed to the mail provider.
            `DELIVERED`: accepted by the holder’s mail server. `BOUNCED`: the
            address does not accept mail. `COMPLAINED`: the holder marked it as
            spam. `FAILED`: could not be sent (see `error`). `SUPPRESSED`: not
            sent, the address bounced or complained before, or the holder
            unsubscribed (see `error`). `LIMITED`: not sent, the workspace had
            reached its daily pass email limit (see `error`).
          example: QUEUED
        error:
          description: Why the email failed or was not sent
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
          description: When the email was queued
        sentAt:
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
              description: ISO 8601 timestamp
            - type: 'null'
        deliveredAt:
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
              description: ISO 8601 timestamp
            - type: 'null'
        bouncedAt:
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
              description: ISO 8601 timestamp
            - type: 'null'
        complainedAt:
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
              description: ISO 8601 timestamp
            - type: 'null'
        failedAt:
          anyOf:
            - type: string
              format: date-time
              pattern: >-
                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
              description: ISO 8601 timestamp
            - type: 'null'
      required:
        - id
        - passId
        - trigger
        - status
        - error
        - createdAt
        - sentAt
        - deliveredAt
        - bouncedAt
        - complainedAt
        - failedAt
      additionalProperties: false
    ApiError:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        errorCode:
          type: string
          enum:
            - UNAUTHORIZED
            - FORBIDDEN
            - SCANNER_OFFLINE_DISABLED
            - TOKEN_EXPIRED
            - TOKEN_INVALID
            - CSRF_TOKEN_INVALID
            - TENANT_EXPIRED
            - TENANT_NOT_FOUND
            - ORGANIZATION_REQUIRED
            - TENANT_SUSPENDED
            - VALIDATION_ERROR
            - INVALID_INPUT
            - MISSING_REQUIRED_FIELD
            - INVALID_FORMAT
            - SYSTEM_VARIABLE_READONLY
            - NOT_FOUND
            - PASS_NOT_FOUND
            - TEMPLATE_NOT_FOUND
            - WEBHOOK_NOT_FOUND
            - NOTIFICATION_NOT_FOUND
            - PASS_NOTIFICATION_NOT_FOUND
            - PASS_NOTIFICATION_BROADCAST_NOT_FOUND
            - CONFLICT
            - VERSION_CONFLICT
            - PRECONDITION_FAILED
            - DUPLICATE_PASS
            - IDEMPOTENCY_CONFLICT
            - SCANNER_SNAPSHOT_STALE
            - TEMPLATE_VERSION_NOT_NEWER
            - WEBHOOK_MANAGED_EXTERNALLY
            - WEBHOOK_SUBSCRIPTION_OWNERSHIP_CONFLICT
            - TEMPLATE_PASS_TYPE_LOCKED
            - TEMPLATE_HAS_PASSES
            - PASS_ALREADY_ISSUED
            - PASS_ALREADY_VOIDED
            - PASS_NOT_ISSUED
            - PASS_ISSUING_FAILED
            - PASS_NOTIFICATION_ALREADY_SENT
            - PASS_NOTIFICATION_BROADCAST_ALREADY_DISPATCHED
            - PASS_EMAIL_MISSING
            - PASS_EMAIL_DISABLED
            - APPLE_SIGNING_FAILED
            - APPLE_APNS_FAILED
            - GOOGLE_API_FAILED
            - GOOGLE_JWT_FAILED
            - PROVIDER_UNAVAILABLE
            - LINK_REVOKED
            - LINK_INVALID
            - TOKEN_SIGNATURE_INVALID
            - TOKEN_CLOCK_SKEW
            - RATE_LIMITED
            - TOO_MANY_REQUESTS
            - PASS_NOTIFICATION_RATE_LIMITED
            - PASS_EMAIL_DAILY_LIMIT_REACHED
            - INTERNAL_ERROR
            - SERVICE_UNAVAILABLE
            - JOB_FAILED
          description: Machine-readable error code
          example: UNAUTHORIZED
        message:
          type: string
          description: Human-readable error message
        correlationId:
          type: string
          description: Request correlation ID for debugging
        details:
          description: Additional error details
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        fieldErrors:
          description: >-
            Field-level problems, one entry per offending field, on invalid
            requests
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                description: >-
                  Dot-separated path to the offending field, e.g.
                  `variables.seat` or `passes.0.label`; empty when the problem
                  concerns the request part as a whole
              message:
                type: string
                description: Human-readable description of the problem
              code:
                type: string
                enum:
                  - UNAUTHORIZED
                  - FORBIDDEN
                  - SCANNER_OFFLINE_DISABLED
                  - TOKEN_EXPIRED
                  - TOKEN_INVALID
                  - CSRF_TOKEN_INVALID
                  - TENANT_EXPIRED
                  - TENANT_NOT_FOUND
                  - ORGANIZATION_REQUIRED
                  - TENANT_SUSPENDED
                  - VALIDATION_ERROR
                  - INVALID_INPUT
                  - MISSING_REQUIRED_FIELD
                  - INVALID_FORMAT
                  - SYSTEM_VARIABLE_READONLY
                  - NOT_FOUND
                  - PASS_NOT_FOUND
                  - TEMPLATE_NOT_FOUND
                  - WEBHOOK_NOT_FOUND
                  - NOTIFICATION_NOT_FOUND
                  - PASS_NOTIFICATION_NOT_FOUND
                  - PASS_NOTIFICATION_BROADCAST_NOT_FOUND
                  - CONFLICT
                  - VERSION_CONFLICT
                  - PRECONDITION_FAILED
                  - DUPLICATE_PASS
                  - IDEMPOTENCY_CONFLICT
                  - SCANNER_SNAPSHOT_STALE
                  - TEMPLATE_VERSION_NOT_NEWER
                  - WEBHOOK_MANAGED_EXTERNALLY
                  - WEBHOOK_SUBSCRIPTION_OWNERSHIP_CONFLICT
                  - TEMPLATE_PASS_TYPE_LOCKED
                  - TEMPLATE_HAS_PASSES
                  - PASS_ALREADY_ISSUED
                  - PASS_ALREADY_VOIDED
                  - PASS_NOT_ISSUED
                  - PASS_ISSUING_FAILED
                  - PASS_NOTIFICATION_ALREADY_SENT
                  - PASS_NOTIFICATION_BROADCAST_ALREADY_DISPATCHED
                  - PASS_EMAIL_MISSING
                  - PASS_EMAIL_DISABLED
                  - APPLE_SIGNING_FAILED
                  - APPLE_APNS_FAILED
                  - GOOGLE_API_FAILED
                  - GOOGLE_JWT_FAILED
                  - PROVIDER_UNAVAILABLE
                  - LINK_REVOKED
                  - LINK_INVALID
                  - TOKEN_SIGNATURE_INVALID
                  - TOKEN_CLOCK_SKEW
                  - RATE_LIMITED
                  - TOO_MANY_REQUESTS
                  - PASS_NOTIFICATION_RATE_LIMITED
                  - PASS_EMAIL_DAILY_LIMIT_REACHED
                  - INTERNAL_ERROR
                  - SERVICE_UNAVAILABLE
                  - JOB_FAILED
                description: Machine-readable reason, e.g. `MISSING_REQUIRED_FIELD`
                example: UNAUTHORIZED
            required:
              - field
              - message
              - code
            additionalProperties: false
      required:
        - errorCode
        - message
        - correlationId
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: plt_<secret>
      description: >-
        Passlet access token (`plt_*`) sent as `Authorization: Bearer <token>`
        or `X-API-Key`. Authorized scopes are listed per operation under
        `x-required-scopes`.

````

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