Saltar al contenido principal
POST
/
v1
/
verification
/
session
Start Verification Session
import requests

url = "https://api.diga.io/v1/verification/session"

files = {
    "deed.0": ("example-file", open("example-file", "rb")),
    "last_payment_receipt.0": ("example-file", open("example-file", "rb"))
}
payload = {
    "applicant_type": "spanish_business",
    "deed": "<string>",
    "last_payment_receipt": "<string>",
    "callback_url": "<string>",
    "notification_email": "jsmith@example.com"
}
headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, data=payload, files=files, headers=headers)

print(response.text)
{
  "verification_id": "<string>",
  "verification_info_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "url": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cuerpo

multipart/form-data
applicant_type
enum<string>
requerido

The type of applicant requesting the verification.

Opciones disponibles:
spanish_business,
spanish_autonomo
deed
file | null

Escritura (PDF)

last_payment_receipt
file | null

Último recibo de pago (PDF)

callback_url
string<uri> | null

The URL where the verification session page will redirect once the verification is complete.

Required string length: 1 - 2083
notification_email
string<email> | null

The email to notify once the verification is complete.

Respuesta

Successful Response

verification_id
string
requerido
verification_info_id
string<uuid>
requerido
url
string<uri>
requerido
Required string length: 1 - 2083