Skip to main content
POST
/
v2
/
SharedRecordCreate
Create shared record
curl --request POST \
  --url http://localhost:3000/v2/SharedRecordCreate \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "mode": "login",
  "identity": "<string>",
  "fields": "<string>",
  "partner": "<string>",
  "appname": "<string>",
  "finaltime": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok",
  "recorduuid": "<string>"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
mode
enum<string>
required

Mode of user identification

Available options:
login,
token,
email,
phone,
custom
identity
string
required

User identifier corresponding to the mode

fields
string

Comma-separated list of fields to share

partner
string

Partner reference name

appname
string

Application name for app-specific data

finaltime
string

Expiration time for the shared record

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Shared record created successfully

status
string
Example:

"ok"

recorduuid
string

UUID of the shared record