> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-pt-br/sdks/backend-sdk/ocr/technical_documentation/api_reference/ocr-processing/api-v1-process.md).

# /api/v1/process

Processes the Latin alphabet using OCR

```json
{"openapi":"3.0.0","info":{"title":"OCR Service Rest API","version":"2.18.2"},"servers":[{"url":"http://127.0.0.1:6982/"}],"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Default name of the API key header. It can be overridden at startup with `auth_api_key_header_name`."}},"schemas":{"ProcessBody":{"type":"object","description":"Body for OCR processing","properties":{"type":{"$ref":"#/components/schemas/type"},"model":{"$ref":"#/components/schemas/model"},"files":{"$ref":"#/components/schemas/files"},"isCropped":{"$ref":"#/components/schemas/isCropped"},"forceDetection":{"$ref":"#/components/schemas/forceDetection"},"retrieveImages":{"$ref":"#/components/schemas/retrieveImages"}}},"type":{"type":"string","description":"The type of document to process must be specified, since our service can handle different types of documents.","enum":["id_card","passport","driver_license","foreign_card","invoice","pdf"]},"model":{"type":"string","description":"This parameter specifies the ID of the document to process."},"files":{"type":"array","description":"Array of images as raw buffers encoded in base64 RFC4648.","items":{"type":"string"}},"isCropped":{"type":"boolean","default":false,"deprecated":true,"description":"If the `image` is already cropped and aligned, the service can skip these operations. Only applies to `invoice` documents."},"forceDetection":{"type":"boolean","default":false,"deprecated":true,"description":"If the `invoice` document does not have the correct aspect ratio, the service can perform an operation to correct it and improve document detection. Only applies to `invoice` documents."},"retrieveImages":{"type":"boolean","default":false,"description":"The service will return the cropped image in base64 in the final result."},"ProcessResult":{"type":"object","description":"Result of processing an image.","properties":{"dictionary":{"$ref":"#/components/schemas/DictionaryResult"},"type":{"$ref":"#/components/schemas/type"},"model":{"$ref":"#/components/schemas/model"},"version":{"type":"string","description":"Version of the detected document."},"side":{"type":"string","description":"Side of the detected document."},"croppedImage":{"type":"string","description":"Cropped image encoded in base64 RFC4648."}}},"DictionaryResult":{"type":"object","description":"Fields detected in an image. They will differ depending on the image.","properties":{"DateOfBirth":{"type":"string","description":"Date of birth."},"DateOfExpiry":{"type":"string","description":"Expiry date."},"DateOfIssue":{"type":"string","description":"Issue date."},"DocumentCaptured":{"type":"string","description":"Type of document captured."},"DocumentNumber":{"type":"string","description":"Document number."},"FirstName":{"type":"string","description":"First name."},"Nationality":{"type":"string","description":"Nationality."}}},"BadRequestResult":{"type":"object","description":"Result when incorrect parameters are received in the request.","properties":{"status":{"type":"number"},"error":{"type":"string"},"message":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}},"TimeStamp":{"type":"string","description":"A date/time value in format \"%Y-%m-%dT%H:%M:%SZ\"."},"ExceptionResult":{"type":"object","description":"An error occurred in the call to the OCR-SDK backend.","properties":{"status":{"type":"number"},"error":{"type":"string"},"exception":{"type":"string"},"timeStamp":{"$ref":"#/components/schemas/TimeStamp"}}}}},"paths":{"/api/v1/process":{"post":{"description":"Processes the Latin alphabet using OCR","tags":["OCR processing"],"requestBody":{"description":"JSON with the OCR input","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessBody"}}}},"responses":{"200":{"description":"The result of the OCR processing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResult"}}}},"400":{"description":"Incorrect parameters were received in the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResult"}}}},"500":{"description":"An error occurred in the call to the OCR-SDK backend.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionResult"}}}}}}}}}
```
