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

# Request OCR and NLP processing

> Request OCR or NLP processing for a fax.

Provide the required `job_id`, `direction`, and `type` fields. Set `direction` to `inbound` or `outbound`. The `type` value is case-sensitive and accepts `OCR` or `NLP`. Authenticate with a Bearer access token.

<Warning>
  The current API returns `Fax NLP request submitted successfully` after both OCR and NLP submissions. For OCR requests, use the HTTP status and `status` field to determine success.
</Warning>


## OpenAPI

````yaml POST /v1/ai/process
openapi: 3.1.0
info:
  title: Amplify Customer API
  version: 1.0.0
  description: |-
    Canonical contract for the Amplify customer-facing API. This YAML file is
    the source of truth for Postman and Mintlify. Operations marked with
    x-amplify-validation-status: pending were migrated from the legacy Postman
    collection and must be validated before their contract is considered final.
servers:
  - url: https://api.amplify.xyz
    description: Production
  - url: https://dev-api.amplify.xyz
    description: Development
security: []
tags:
  - name: Authentication
  - name: Fax
  - name: Send Faxes
  - name: Receive Faxes
  - name: Manage Faxes
  - name: Workspace
  - name: Numbers
  - name: Contacts
  - name: Documents
  - name: Templates
paths:
  /v1/ai/process:
    post:
      tags:
        - Fax
      summary: Request OCR and NLP processing
      description: 'Migrated from Customer API v1: OCR & NLP > Request OCR & NLP.'
      operationId: postv1AiProcess
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - job_id
                - direction
                - type
              properties:
                job_id:
                  type: string
                  description: Unique identifier of the fax to process.
                direction:
                  type: string
                  description: Direction of the fax being processed.
                  enum:
                    - inbound
                    - outbound
                type:
                  type: string
                  description: Case-sensitive processing type.
                  enum:
                    - OCR
                    - NLP
            example:
              job_id: 01KKTE796DZDD1XET84QTPJJCR
              direction: outbound
              type: OCR
      responses:
        '200':
          description: The OCR or NLP processing request was submitted successfully.
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - message
                properties:
                  status:
                    type: integer
                  message:
                    type: string
              examples:
                nlp:
                  summary: NLP request submitted
                  value:
                    status: 1
                    message: Fax NLP request submitted successfully
                ocr:
                  summary: OCR request submitted with the current response message
                  value:
                    status: 1
                    message: Fax NLP request submitted successfully
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````