API/Init

Create Init

Create an initialisation object for the API.

POST
/init

Request Body

application/jsonRequired
senderRequiredstring

Authority id.

sender_devicestring

Device used to create the initialisation object.

sender_ipstring

IP address of the device used to create the initialisation object.

curl -X POST "https://onlynv.dev/api/init" \
  -H "Content-Type: application/json" \
  -d '{
    "sender": "@onlynv/cli",
    "sender_device": "Nv\'s MacBook Pro",
    "sender_ip": "000.000.000.000"
  }'

Created.

{
  "id": "a7ggyjqs0ypzedxjaf7v2oulv",
  "url": "https://onlynv.dev/api/init/a7ggyjqs0ypzedxjaf7v2oulv",
  "redirect_url": "https://onlynv.dev/init/a7ggyjqs0ypzedxjaf7v2oulv",
  "interval": 5000,
  "timestamp": 1690000000000
}