POST
/
v1
/
identity-documents
/
urls
curl --request POST \
  --url https://api.sandbox.sardine.ai/v1/identity-documents/urls \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sessionKey": "00b4ce72-3979-4931-9229-05ed1cec4173",
  "customerId": "3d39f71c-ee5b-44cd-88ab-fd24f758cf85",
  "redirectURL": "https://sardine.ai",
  "inputData": {
    "issuingCountry": "US",
    "firstName": "Jane",
    "middleName": "Joe",
    "lastName": "Doe"
  }
}'
{
  "id": "12345",
  "link": {
    "expiredAt": "<string>",
    "url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
sessionKey
string
required

unique identifier for the given customer session on your platform, generated by your service. We expect it to be short-lived (e.g. expires after 30 min)

Maximum length: 100
customerId
string

Id for the customer. Please use the same ID you use for v1/customers API

redirectURL
string

URL were the user should be redirected to once they have completed the document verification flow.

inputData
object

Response

200 - application/json
Success
id
string

id of the document kyc process

Was this page helpful?