$schema: http://json-schema.org/draft-07/schema# $id: https://raw.githubusercontent.com/api-evangelist/yousign/main/json-schema/yousign-json-schema.json title: Yousign Public API v3 Schemas description: JSON Schema definitions extracted from the Yousign Public API v3 OpenAPI specification. definitions: UploadArchivedFile: properties: file: description: File to be uploaded format: binary type: string workspace_id: example: 69120884-d29a-4b1a-ac7b-a9e73a872795 format: uuid nullable: true type: string archive_y: nullable: true pattern: ^(true|false)?$ type: string tags: description: Tags for the file items: maxLength: 1000 minLength: 1 pattern: '[^\x00-\x1F\x7F]*' type: string nullable: true type: array expired_at: description: Expiration date of the file example: '2024-06-24 09:26:44' nullable: true pattern: ^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]) ([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$ type: string required: - file type: object ArchivedFile: description: ArchivedFile properties: id: example: 21ac9d25-e24d-4564-b964-d67eed561ca9 format: uuid minLength: 1 type: string sha256: description: Sha256 checksum example: 6ecf29381314217530c02c64a97050a0a6a0944bb974b6b417588277e289aef0 maxLength: 64 minLength: 64 type: string filename: maxLength: 255 minLength: 1 type: string created_at: description: Creation date of the file example: '2024-01-18T22:59:00Z' format: date-time type: string expired_at: description: Expiration date of the file example: '2025-01-18T22:59:00Z' format: date-time nullable: true type: string content_type: example: application/pdf type: string size: example: 123456 minimum: 1 type: integer archive_y_identifier: description: Identifier that allows to save the file in an additional storage. nullable: true type: string tags: description: Tags for the file items: maxLength: 1000 minLength: 1 pattern: '[^\x00-\x1F\x7F]*' type: string nullable: true type: array workspace_id: example: 528e2077-d0c1-4506-acd9-fac35a9cb7b4 format: uuid minLength: 1 type: string required: - archive_y_identifier - content_type - created_at - expired_at - filename - id - sha256 - size - tags - workspace_id title: ArchivedFile type: object UUID: description: The unique identifier for a resource. example: 9a93d3b5-fb3b-4abf-9e70-26315b33506c format: uuid type: string DateYMD: example: '2022-12-10' format: date type: string Consumption: properties: app: $ref: '#/components/schemas/Consumption_app' api: $ref: '#/components/schemas/Consumption_api' connector: $ref: '#/components/schemas/Consumption_app' required: - api - app - connector type: object AddonConsumptionsName: enum: - bank_account_connection_verification - bank_account_lookup_verification - bank_account_verification - company_verification - company_de_verification - company_it_verification - document_analysis_verification - document_analysis_tax_notice_verification - document_trust_advanced_verification - identity_document_verification - identity_video_face_recognition_verification - certified_identity_pvid - identity_video_verification - proof_of_address_verification - watchlist_verification - advanced_electronic_seal - advanced_electronic_signature - advanced_electronic_signature_pre_verified - archiving - electronic_seal - electronic_signature - qualified_electronic_signature_identity_verification - qualified_electronic_signature_saved_identity type: string AddonConsumption: properties: name: $ref: '#/components/schemas/AddonConsumptionsName' start_at: description: Beginning of the addon subscription example: '2020-05-18T07:25:36Z' format: date-time type: string end_at: description: End of the addon subscription example: '2020-05-18T07:25:36Z' format: date-time type: string quota: minimum: 0 type: integer consumed: minimum: 0 type: integer provisioned: description: Only available for qualified_electronic_signature_identity_verification and qualified_electronic_signature_saved_identity addons minimum: 0 type: integer required: - consumed - end_at - name - quota - start_at type: object PaginationWithUpdatedAt: description: Cursor based pagination properties: next_cursor: minLength: 1 nullable: true type: string updated_at: example: '2024-01-18T22:59:00Z' format: date-time type: string required: - next_cursor - updated_at type: object DetailedConsumption: properties: source: enum: - app - api - connector type: string type: enum: - invited_signers - electronic_seals - identification_attempts - archiving - verifications type: string level: description: 'Specifies the level of the consumed eSignature, eSeal and QES identification attempts: simple, advanced, or qualified. Only set when type is either `invited_signer`, `electronic_seals`, `identification_attempts`. ' enum: - simple - advanced - qualified type: string verification_type: $ref: '#/components/schemas/KycAddonConsumptionsName' identification_mode: description: Only set if type is identification_attempts. enum: - identity_verification - saved_identity type: string workspace_id: description: Only set if breakdown is set on workspaces. example: 8b6ed2f3-244f-487a-baa1-bbe4f51c8744 format: uuid minLength: 1 type: string value: description: Count of items or file size in case of archiving. minimum: 1 type: integer required: - source - type - value type: object Pagination: description: Metadata about the response. properties: next_cursor: description: 'Token to get the next page of results. If `null`, there are no more pages. ' minLength: 1 nullable: true type: string required: - next_cursor type: object ElectronicSealsConsumption: properties: seal_id: example: 0e8f7f8a-1b2c-4d3e-9f0a-b1c2d3e4f5a6 format: uuid type: string document_id: example: 37646975-7e73-41f1-be7f-f4d85d181d03 format: uuid type: string seal_level: description: Level of the Electronic Seal applied. enum: - electronic_signature - advanced_electronic_signature - qualified_electronic_signature_external example: electronic_signature type: string created_at: description: Creation time of the record example: '2024-05-01 12:00:00' type: string source: description: Origin of the operation. example: app type: string external_id: description: Optional user-defined identifier. example: ext-12345 nullable: true type: string certificate_id: example: 6c82bd7a-d7f7-45e0-82f4-b92222567346 format: uuid nullable: true type: string workspace_id: example: 9b6ed2f3-244f-487a-baa1-bbe4f51c8748 format: uuid type: string authentication_key: description: Identifier of the key used for the operation. example: authkey_live_2x1s3k9p nullable: true type: string workspace_name: description: Name of the workspace. example: My workspace type: string workspace_external_name: description: External name of the workspace. example: My workspace nullable: true type: string required: - authentication_key - certificate_id - created_at - document_id - external_id - seal_id - seal_level - source - workspace_external_name - workspace_id - workspace_name type: object IdentificationsConsumption: properties: created_at: description: Creation time of the record example: '2024-05-01 12:00:00' type: string signer_id: example: 0e8f7f8a-1b2c-4d3e-9f0a-b1c2d3e4f5a6 format: uuid type: string signer_email: example: test@example.com type: string signature_request_id: example: 6c82bd7a-d7f7-45e0-82f4-b92222567346 format: uuid nullable: true type: string signature_request_name: example: Signature Name type: string signature_level: description: Level of the Signature Request. enum: - simple_electronic_signature - advanced_electronic_signature - electronic_signature_with_qualified_certificate - qualified_electronic_signature example: simple_electronic_signature type: string signer_identification: description: Identification of the Signer. enum: - identity_verification - saved_identity type: string identified_at: description: Identification time of the signer example: '2024-05-01 12:00:00' type: string identification_status: description: Status of the identification. enum: - succeeded - rejected example: rejected type: string identification_reasons: example: - too_blury items: description: The reasons why the Signer failed to verify their identity. enum: - bad_internet_connection - document_expiry_date_missing - document_invalid_failed_owner - document_invalid_failed_rule - document_invalid_part_hidden - document_invalid_part_missing - face_identification_invalid - fraud_attempt_detected - identity_firstname_lastname_inversion - identity_firstname_mismatch - identity_firstname_missing - identity_lastname_mismatch - identity_probably_missing_firstname_parts - identity_probably_missing_lastname_parts - identity_probably_too_many_firstname_parts - identity_probably_too_many_lastname_parts - internal_error - video_quality_insufficient - too_blury - document_version_not_accepted - document_not_original - face_identity_inconsistency - altered_materials - unknown type: string nullable: true type: array sender_id: example: 0e8f7f8a-1b2c-4d3e-9f0a-b1c2d3e4f5a6 format: uuid nullable: true type: string sender_email: example: test@example.com nullable: true type: string authentication_key: description: Identifier of the key used for the operation. example: authkey_live_2x1s3k9p nullable: true type: string authentication_key_description: description: Description of the key used for the operation. nullable: true type: string external_id: description: Optional user-defined identifier. example: ext-12345 nullable: true type: string workspace_id: example: 9b6ed2f3-244f-487a-baa1-bbe4f51c8748 format: uuid nullable: true type: string workspace_name: description: Name of the workspace. example: My workspace type: string signer_fullname: description: Full name of the signer. example: Jane Doe type: string workspace_external_name: description: External name of the workspace. example: My workspace nullable: true type: string required: - authentication_key - authentication_key_description - created_at - external_id - identification_reasons - identification_status - identified_at - sender_email - sender_id - signature_level - signature_request_id - signature_request_name - signer_email - signer_fullname - signer_id - signer_identification - workspace_external_name - workspace_id - workspace_name type: object InvitedSignersConsumption: properties: created_at: description: Creation time of the record example: '2024-05-01 12:00:00' type: string signer_id: example: 0e8f7f8a-1b2c-4d3e-9f0a-b1c2d3e4f5a6 format: uuid type: string signer_email: example: test@example.com type: string signature_request_id: example: 6c82bd7a-d7f7-45e0-82f4-b92222567346 format: uuid nullable: true type: string signature_request_name: example: Signature Name type: string signature_level: description: Level of the Signature Request. enum: - simple_electronic_signature - advanced_electronic_signature - electronic_signature_with_qualified_certificate - qualified_electronic_signature example: simple_electronic_signature type: string sender_id: example: 0e8f7f8a-1b2c-4d3e-9f0a-b1c2d3e4f5a6 format: uuid nullable: true type: string sender_email: example: test@example.com nullable: true type: string source: description: Origin of the operation. example: app type: string connector: description: Signature request origin. enum: - app - public_api - connector_salesforce_api - hubspot_integration - connector_google_api - connector_zapier_api example: app nullable: true type: string authentication_key: description: Identifier of the key used for the operation. example: authkey_live_2x1s3k9p nullable: true type: string authentication_key_description: description: Description of the key used for the operation. nullable: true type: string external_id: description: Optional user-defined identifier. example: ext-12345 nullable: true type: string workspace_id: example: 9b6ed2f3-244f-487a-baa1-bbe4f51c8748 format: uuid nullable: true type: string workspace_name: description: Name of the workspace. example: My workspace type: string signer_fullname: description: Full name of the signer. example: Jane Doe type: string workspace_external_name: description: External name of the workspace. example: My workspace nullable: true type: string required: - authentication_key - authentication_key_description - connector - created_at - external_id - sender_email - sender_id - signature_level - signature_request_id - signature_request_name - signer_email - signer_fullname - signer_id - source - workspace_external_name - workspace_id - workspace_name type: object Contact: properties: id: format: uuid type: string first_name: type: string last_name: type: string email: format: email type: string locale: type: string phone_number: description: E.164 format nullable: true type: string company_name: nullable: true type: string job_title: nullable: true type: string address_line_1: nullable: true type: string address_line_2: nullable: true type: string address_city: nullable: true type: string address_postal_code: nullable: true type: string address_country: nullable: true type: string workspace_id: example: 9a93d3b5-fb3b-4abf-9e70-26315b33506c format: uuid nullable: true type: string required: - address_city - address_country - address_line_1 - address_line_2 - address_postal_code - company_name - email - first_name - id - job_title - last_name - locale - phone_number title: Contact type: object CreateContact: properties: first_name: allOf: - $ref: '#/components/schemas/HumanName' example: John maxLength: 255 minLength: 1 type: string last_name: allOf: - $ref: '#/components/schemas/HumanName' example: Doe maxLength: 255 minLength: 1 type: string email: example: john.doe@example.com format: email type: string locale: $ref: '#/components/schemas/Locale' phone_number: description: E.164 format example: '+41446667700' minLength: 1 type: string company_name: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: Yousign SAS format: safe-string maxLength: 255 minLength: 1 type: string job_title: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: Developer format: safe-string maxLength: 255 minLength: 1 type: string address_line_1: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: 34 Rue Malfilatre format: safe-string maxLength: 255 minLength: 1 type: string address_line_2: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: 1st floor format: safe-string maxLength: 255 minLength: 1 type: string address_city: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: Caen format: safe-string maxLength: 255 minLength: 1 type: string address_postal_code: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: '14000' format: safe-string maxLength: 255 minLength: 1 type: string address_country: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: France format: safe-string maxLength: 255 minLength: 1 type: string workspace_id: example: 69120884-d29a-4b1a-ac7b-a9e73a872795 format: uuid nullable: true type: string required: - email - first_name - last_name - locale type: object UpdateContact: properties: first_name: allOf: - $ref: '#/components/schemas/HumanName' example: John maxLength: 255 minLength: 1 type: string last_name: allOf: - $ref: '#/components/schemas/HumanName' example: Doe maxLength: 255 minLength: 1 type: string email: example: john.doe@example.com format: email type: string locale: $ref: '#/components/schemas/Locale' phone_number: description: E.164 format example: '+41446667700' minLength: 1 nullable: true type: string company_name: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: Yousign SAS format: safe-string maxLength: 255 minLength: 1 nullable: true type: string job_title: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: Developer format: safe-string maxLength: 255 minLength: 1 nullable: true type: string address_line_1: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: 34 Rue Malfilatre format: safe-string maxLength: 255 minLength: 1 nullable: true type: string address_line_2: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: 1st floor format: safe-string maxLength: 255 minLength: 1 nullable: true type: string address_city: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: Caen format: safe-string maxLength: 255 minLength: 1 nullable: true type: string address_postal_code: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: '14000' format: safe-string maxLength: 255 minLength: 1 nullable: true type: string address_country: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). example: France format: safe-string maxLength: 255 minLength: 1 nullable: true type: string workspace_id: example: 69120884-d29a-4b1a-ac7b-a9e73a872795 format: uuid nullable: true type: string type: object CustomExperience: properties: id: format: uuid readOnly: true type: string name: type: string landing_page_disabled: type: boolean side_panel_disabled: type: boolean background_color: nullable: true type: string button_color: nullable: true type: string text_color: nullable: true type: string text_button_color: nullable: true type: string disabled_notifications: items: $ref: '#/components/schemas/CustomExperience_DisabledNotificationsType' type: array email_logo_disabled: type: boolean email_header_text_disabled: type: boolean email_footer_signature_disabled: type: boolean email_expiration_text_disabled: type: boolean recipients_activity_disabled: type: boolean download_documents_disabled: type: boolean document_navigation_disabled: type: boolean redirect_urls: $ref: '#/components/schemas/CustomExperience_redirect_urls' logo: example: https://yousign.com/custom_experience/89120884-d29a-4b1a-ac7b-a9e73a872795/logo format: uri nullable: true type: string source: $ref: '#/components/schemas/CustomExperience_Source' created_at: example: '2024-01-18T22:59:00Z' format: date-time type: string required: - background_color - button_color - created_at - disabled_notifications - document_navigation_disabled - download_documents_disabled - email_expiration_text_disabled - email_footer_signature_disabled - email_header_text_disabled - email_logo_disabled - id - landing_page_disabled - logo - recipients_activity_disabled - redirect_urls - side_panel_disabled - source - text_button_color - text_color type: object CreateCustomExperience: properties: name: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). format: safe-string maxLength: 255 minLength: 1 type: string landing_page_disabled: default: false nullable: true type: boolean side_panel_disabled: default: false nullable: true type: boolean background_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string button_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string text_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string text_button_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string disabled_notifications: items: $ref: '#/components/schemas/CustomExperience_DisabledNotificationsType' nullable: true type: array email_logo_disabled: default: false nullable: true type: boolean email_header_text_disabled: default: false nullable: true type: boolean email_footer_signature_disabled: default: false nullable: true type: boolean email_expiration_text_disabled: default: false nullable: true type: boolean recipients_activity_disabled: default: true nullable: true type: boolean download_documents_disabled: default: false description: If true, signers won't be able to download documents before signing. nullable: true type: boolean document_navigation_disabled: default: false description: If true and the request contains more than 1 document, signers must read each document before moving to the next. nullable: true type: boolean redirect_urls: $ref: '#/components/schemas/CreateCustomExperience_redirect_urls' logo_layout: $ref: '#/components/schemas/LogoLayout' required: - name type: object UpdateCustomExperience: properties: name: description: This property is a [Safe String](https://developers.yousign.com/reference/oas-specification#safe-string). format: safe-string type: string landing_page_disabled: nullable: true type: boolean side_panel_disabled: nullable: true type: boolean background_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string button_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string text_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string text_button_color: description: Hexadecimal color value example: '#ff0011' nullable: true pattern: ^(#[a-f0-9]{3}$)|(#[a-f0-9]{6}$) type: string disabled_notifications: items: $ref: '#/components/schemas/CustomExperience_DisabledNotificationsType' nullable: true type: array email_logo_disabled: nullable: true type: boolean email_header_text_disabled: nullable: true type: boolean email_footer_signature_disabled: nullable: true type: boolean email_expiration_text_disabled: nullable: true type: boolean recipients_activity_disabled: nullable: true type: boolean download_documents_disabled: description: If true, signers won't be able to download documents before signing. nullable: true type: boolean document_navigation_disabled: default: false description: If true and the request contains more than 1 document, signers must read each document before moving to the next. nullable: true type: boolean redirect_urls: $ref: '#/components/schemas/UpdateCustomExperience_redirect_urls' logo_layout: $ref: '#/components/schemas/LogoLayout' type: object CustomPropertyType: enum: - text - list example: text type: string CustomPropertyList: properties: data: description: List of custom properties. items: $ref: '#/components/schemas/CustomProperty' type: array next_cursor: description: 'Cursor for the next page. Null if no more pages available. ' nullable: true type: string required: - data title: CustomPropertyList type: object CreateCustomProperty: additionalProperties: false properties: name: description: Display name of the property. example: Document Type maxLength: 255 minLength: 1 type: string type: description: 'Field type. Cannot be changed after creation. ' enum: - text - list example: list type: string multiple_answer_allowed: default: false description: 'For list type only. Whether multiple options can be selected. ' type: boolean default_value: description: 'For text type only. Default text pre-filled on new SRs. ' example: REF-001 nullable: true type: string options: description: 'For list type only. Selectable options. At least one required. ' items: $ref: '#/components/schemas/CustomPropertyOptionInput' minItems: 1 type: array workspaces: description: 'List of Workspaces that define where the Custom Property is scoped. If the array is empty, the Custom Property is available to all Workspaces. ' items: $ref: '#/components/schemas/UUID' minItems: 0 type: array uniqueItems: true required: - name - type title: CreateCustomProperty type: object CustomProperty: properties: id: description: Unique identifier of the custom property. format: uuid type: string name: description: Display name of the property. type: string type: description: Field type. enum: - text - list type: string required: description: Whether users must fill this property before sending the SR via the application (not enforced via API). type: boolean multiple_answer_allowed: description: For list type only — whether multiple options can be selected. Null for text type. nullable: true type: boolean workspace_ids: description: List of workspace IDs where this property is applicable. Null means org-wide. items: $ref: '#/components/schemas/UUID' nullable: true type: array default_value: description: For text type only — default text pre-filled on new signature requests. Null for list type. maxLength: 1000 nullable: true type: string options: description: 'For list type only: selectable options. Null for text type. ' items: $ref: '#/components/schemas/CustomPropertyOption' nullable: true type: array created_at: description: Creation timestamp (ISO 8601). format: date-time type: string updated_at: description: Last update timestamp (ISO 8601). format: date-time type: string required: - created_at - id - name - type - updated_at title: CustomProperty type: object UpdateCustomProperty: additionalProperties: false properties: name: description: Display name of the property. example: Contract Type maxLength: 255 minLength: 1 type: string type: description: 'Cannot be changed after creation. If provided and different from current type, request is rejected with 400. ' enum: - text - list type: string multiple_answer_allowed: description: 'For list type only. Whether multiple options can be selected. ' type: boolean default_value: description: 'For text type only. Default text pre-filled on new SRs. ' nullable: true type: string options: description: 'For list type only. Send the full array to replace all options. - Include id for existing options to preserve them (rename/reorder). - Omit id for new options. - Options not present in the array are removed. ' items: $ref: '#/components/schemas/CustomPropertyOptionUpdate' type: array workspaces: description: 'List of Workspaces that define where the Custom Property is scoped. If the array is empty, the Custom Property is available to all Workspaces. ' items: $ref: '#/components/schemas/UUID' minItems: 0 type: array uniqueItems: true title: UpdateCustomProperty type: object DocumentAnalysisMeta: properties: id: $ref: '#/components/schemas/UUID' workspace_id: description: The Workspace ID in which the Document Analysis has been created. example: 9a93d3b5-fb3b-4abf-9e70-26315b33506c format: uuid type: string workflow_session_id: $ref: '#/components/schemas/WorkflowSessionId' previous_attempt_id: $ref: '#/components/schemas/PreviousAttemptId' created_at: description: Creation date of the Document Analysis. example: '2024-01-18T22:59:00Z' format: date-time type: string updated_at: description: Update date of the Document Analysis. example: '2024-01-18T22:59:00Z' format: date-time type: string status: $ref: '#/components/schemas/DocumentAnalysisStatus' status_codes: description: 'List of status codes. Indicates the cause when the status is `failed`. `DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes. ' example: [] items: enum: - DA_1001 - DA_1002 - DA_1003 - DA_1004 - DA_1100 - DA_1201 - DA_1202 - DA_1301 - DA_1302 - DA_1303 - DA_1304 - DA_1401 - DA_1402 - DA_1403 - DA_2001 - DA_2002 - DA_2301 - DA_2302 - DA_2401 - DA_2402 - DA_3001 - DA_3003 - DA_3004 type: string type: array type: allOf: - $ref: '#/components/schemas/DocumentAnalysisType' description: 'Type of the analysed document. `null` for fraud-only analyses (`analysis_type.extraction` is `false`). ' nullable: true country_code: description: 'The country code associated with the document analysis. Null for document types that don''t require a country code. ' nullable: true type: string example: null data_anonymized: description: 'Indicates if the personal data extracted from the document has been anonymized. If set to `true`, the personal data has been anonymized and most fields will be NULL. ' example: false type: boolean analysis_type: $ref: '#/components/schemas/AnalysisType' fraud_risk_analysis: $ref: '#/components/schemas/FraudRiskAnalysis' required: - country_code - created_at - data_anonymized - id - previous_attempt_id - status - status_codes - type - updated_at - workflow_session_id - workspace_id title: DocumentAnalysisMeta type: object InitiateDocumentAnalysisFromApplicant: additionalProperties: false properties: applicant_id: description: The Applicant ID linked to the Workflow Session. example: 9a93d3b5-fb3b-4abf-9e70-26315b33506c format: uuid type: string type: allOf: - $ref: '#/components/schemas/DocumentAnalysisType' analysis_type: $ref: '#/components/schemas/AnalysisType' country_code: description: 'The country code of the document. Required when `type` is `vehicle_registration_document` (accepted: `FR`, `IT`), `tax_notice` (accepted: `FR` only), `payslip` (accepted: `FR`, `IT`) or `invoice` (accepted: `FR` only). ' enum: - FR - IT example: FR type: string checks: $ref: '#/components/schemas/InitiateDocumentAnalysisFromApplicant_checks' required: - applicant_id title: Attach a new Document Analysis to an Applicant type: object InitiateDocumentAnalysisFromMultipart: oneOf: - $ref: '#/components/schemas/InitiateSocialSecurity' - $ref: '#/components/schemas/InitiateCompanyCertificate' - $ref: '#/components/schemas/InitiateBusinessRegistrationCertificate' - $ref: '#/components/schemas/InitiateDriverLicence' - $ref: '#/components/schemas/InitiateRNECertificate' - $ref: '#/components/schemas/InitiateTemporaryVehicleRegistrationDocument' - $ref: '#/components/schemas/InitiateVehicleRegistrationDocument' - $ref: '#/components/schemas/InitiateAutoInsuranceClaimsHistory' - $ref: '#/components/schemas/InitiateTaxNotice' - $ref: '#/components/schemas/InitiatePayslip' - $ref: '#/components/schemas/InitiateInvoice' - $ref: '#/components/schemas/InitiateFraudOnly' type: object SocialSecurityFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - social_security type: string extracted_from_document: $ref: '#/components/schemas/SocialSecurityExtraction' checks: $ref: '#/components/schemas/SocialSecurityCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Social Security type: object CompanyCertificateFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - company_certificate type: string extracted_from_document: $ref: '#/components/schemas/CompanyCertificateExtraction' checks: $ref: '#/components/schemas/CompanyCertificateCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Company Certificate type: object BusinessRegistrationCertificateFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - business_registration_certificate type: string extracted_from_document: $ref: '#/components/schemas/BusinessRegistrationCertificateExtraction' checks: $ref: '#/components/schemas/BusinessRegistrationCertificateCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Business Registration Certificate type: object DriverLicenceFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - driver_licence type: string extracted_from_document: $ref: '#/components/schemas/DriverLicenceExtraction' checks: $ref: '#/components/schemas/DriverLicenceCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Driver Licence type: object RNECertificateFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - rne_certificate type: string extracted_from_document: $ref: '#/components/schemas/RNECertificateExtraction' checks: $ref: '#/components/schemas/RNECertificateCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: RNE Certificate type: object TemporaryVehicleRegistrationDocumentFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - temporary_vehicle_registration_document type: string country_code: enum: - IT type: string extracted_from_document: $ref: '#/components/schemas/TemporaryVehicleRegistrationDocumentExtraction' checks: $ref: '#/components/schemas/TemporaryVehicleRegistrationDocumentCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Temporary Vehicle Registration Document type: object VehicleRegistrationDocumentFull: oneOf: - $ref: '#/components/schemas/French_Vehicle_Registration_Document' - $ref: '#/components/schemas/Italian_Vehicle_Registration_Document' title: Vehicle Registration Document AutoInsuranceClaimsHistoryFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - auto_insurance_claims_history type: string extracted_from_document: $ref: '#/components/schemas/AutoInsuranceClaimsHistoryExtraction' checks: $ref: '#/components/schemas/AutoInsuranceClaimsHistoryCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Auto Insurance Claims History type: object TaxNoticeFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - tax_notice type: string extracted_from_document: $ref: '#/components/schemas/TaxNoticeExtraction' checks: $ref: '#/components/schemas/TaxNoticeCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Tax Notice type: object PayslipFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - payslip type: string extracted_from_document: $ref: '#/components/schemas/PayslipExtraction' checks: $ref: '#/components/schemas/PayslipCheck' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: Payslip type: object InvoiceFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: enum: - invoice type: string extracted_from_document: $ref: '#/components/schemas/FrenchInvoiceExtraction' checks: $ref: '#/components/schemas/InvoiceFull_allOf_checks' type: object required: - checks - country_code - created_at - data_anonymized - extracted_from_document - id - previous_attempt_id - status - type - updated_at - workflow_session_id - workspace_id title: French Invoice Document type: object FraudOnlyFull: allOf: - $ref: '#/components/schemas/DocumentAnalysisMeta_1' - properties: type: description: Always `null` for a fraud-only analysis (no document type). nullable: true type: string example: null analysis_type: $ref: '#/components/schemas/FraudOnlyFull_allOf_analysis_type' fraud_risk_analysis: $ref: '#/components/schemas/FraudRiskAnalysis' required: - analysis_type type: object description: 'Document Analysis run in fraud-only mode (`analysis_type.extraction` is `false`). No document `type` and no extracted data; only the fraud detection result is returned. ' title: Fraud Only type: object CreateDocumentFromMultipart: properties: file: description: 'Binary file. Accepted formats: `PDF`, `DOCX`, `JPEG`, `JPG` and `PNG`. All files are converted to PDF upon upload.' format: binary type: string nature: description: 'Can take two values: `signable_document` or `attachment`. Files in `JPEG`, `JPG`, and `PNG` format can only be of `attachment` nature.' enum: - attachment - signable_document type: string insert_after_id: description: Insert just after the position of the specified document id. example: 8b6ed2f3-244f-487a-baa1-bbe4f51c8744 format: uuid nullable: true type: string password: example: MyPa$$word type: string name: description: The document name. If not set, will use the uploaded document name. This value should contain any characters except "\", "/" and can\'t start and finish with a space. example: file1 maxLength: 128 minLength: 1 pattern: ^(?!\s)[^\/\\]+(?