postCreate an inquiry
Authorization Required
If you plan on fetching data that requires prior consent from the user,
then you must create an inquiry via this endpoint, and send the user to the inquiry url first.
See the GET /persons/{ssn} endpoint documentation to see what data you can fetch with/without
prior consent from the user.
This endpoint returns a link to Neobits' app where Neobits will take the person through the steps necessary to provide their consent and share their data. After the user consents to share their data, they will be redirected to the URL(s) you decide as part of the request body to this endpoint (see request body schema).
Error handling
Errors are attached to the error redirect URL as query parameters. When the user is redirected, the consumer of the API can read the error details to handle it appropriately.
Example error redirect:
https://redirect.example.com/error?name=InternalServerError&code=500-001&message=An+internal+server+error+occurred
The redirect URL includes three query parameters:
- name - The error type identifier (e.g.,
InternalServerError,BadRequestError) - code - A unique error code in the format
HTTP_STATUS-SEQUENCE - message - A URL-encoded human-readable description of the error