For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rest API

Landing SDK integration via Rest API.

The Landing API is used to generate a landing URL through a valid API key, so that this URL can be used by the client to serve its users.

How to call

Once the landing page is generated and published, the client will be provided with the URL to call the API as follows:

curl -X POST \
  https://landing.identity-platform.io/api/landing \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: CLIENT_API_KEY' \
  -d '{}'

This call will return the landing page URL and the status as follows:

{
    "status": true,
    "url": "https://test.landing.identity-platform.io"
}

UniqueUrl

This API offers the possibility of generating a unique encoded URL for use by a single client, either by assigning it a customerId, the documentNumber or both, as follows:

curl -X POST \
  https://landing.identity-platform.io/api/landing \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{
        "uniqueUrl": true,
        "customerId": "example",
        "documentNumber": "1111111111S"
     }'

This call will generate a unique URL with a validation period of 15 minutes; after that time, the URL will expire and will also be associated with the documentNumber that is sent, which means that if the captured document number is different, the operation will be rejected on the platform.

You can change the validity period of a URL by adding the parameter time in minutes, like this:

Examples of API implementations in different languages

NodeJS

Java

PHP

Last updated