Skip to main content
POST
/
v2
/
AgreementAccept
Accept agreement
curl --request POST \
  --url http://localhost:3000/v2/AgreementAccept \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "mode": "login",
  "identity": "<string>",
  "brief": "<string>",
  "agreementmethod": "<string>",
  "referencecode": "<string>",
  "starttime": "<string>",
  "finaltime": "<string>",
  "status": "pending",
  "lastmodifiedby": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok"
}

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

brief
string
required

Unique identifier of the legal basis/agreement

agreementmethod
string

Method of agreement (e.g., 'web-form', 'checkbox', 'signature')

referencecode
string

External reference code or identifier

starttime
string

Start time of the agreement validity (ISO 8601 format)

finaltime
string

End time of the agreement validity (Unix timestamp format)

status
enum<string>

Status of the agreement

Available options:
pending,
active,
expired
lastmodifiedby
string

Identifier of the person/system that last modified this agreement

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Agreement accepted successfully

status
string
Example:

"ok"