/
Create new links for a request
  • Verified
  • Create new links for a request

    This API call allows you to generate new links for a specific onboarding request. The links are generated for each actor involved in the onboarding process. If the request type involves a simple user onboarding, only one link will be generated. You can invoke this API to generate new links until the request expires, but previously created links remain usable.

    Endpoint

    • URL: /request/{id}/links

    • Method: POST

    Headers

    Ensure you include the following headers in your request:

    • Accept: application/json

    • Content-Type: application/json

    • X-Api-Key: YOUR_API_KEY (replace YOUR_API_KEY with your actual API key)

    Path parameters

    • id (required): The unique identifier of the request for which you want to generate links. This should be included in the URL path. Example: 123e4567-e89b-12d3-a456-426614174000

    Request Body

    The request body should be in JSON format and can include the following optional field:

    • onlyForActors (optional): An array of actor names for whom the links should be generated. If not provided, links will be generated for all actors. Example:

      { "onlyForActors": ["actor1", "actor2"] }

    Example cURL API call

    curl -X POST "https://test.onboarding.namirial.app/api/v2/request/YOUR_REQUEST_ID/links" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H "X-Api-Key: YOUR_API_KEY" \ -d '{ "onlyForActors": ["customer"] }'

    Replace YOUR_API_KEY with your actual API key and YOUR_REQUEST_ID with the ID of the request.

    Responses

    • 200 OK

      • Description: The generated links for the specified request.

      • Example Response:

        { "links": [ { "actor": "customer", "link": "https://onboarding.example/res/3949?ts=49943", "expiresAfter": "2024-11-29T17:42:16.269594Z" } ] }
    • 400 Bad Request

      • Description: Bad Request described following Problem Details (RFC 9457).

      • Example Response:

    Related content

    Create a new request with preset data
    Create a new request with preset data
    More like this
    Get info on an identification for a request
    Get info on an identification for a request
    More like this
    Create request type webhooks setting
    Create request type webhooks setting
    More like this
    Get list of identifications for a request
    Get list of identifications for a request
    More like this