POST
/
v2
/
initial_registration
curl --request POST \
  --url http://127.0.0.1:9550/v2/initial_registration \
  --header 'Content-Type: application/json' \
  --data '{
  "body": {
    "encrypted": {
      "content": "<string>"
    }
  },
  "encryption": "DiffieHellmanChaChaPoly1305",
  "external_metadata": {
    "intra_sender": "<string>",
    "other": "<string>",
    "recipient": "<string>",
    "scheduled_time": "<string>",
    "sender": "<string>",
    "signature": "<string>"
  },
  "version": "V1_0"
}'
{
  "api_v2_key": "<string>",
  "encryption_public_key": "<string>",
  "identity_public_key": "<string>",
  "message": "<string>",
  "node_name": "<string>"
}

Register a new user or device with the Shinkai API for the first time.

Body

application/json
body
object
required
encryption
enum<string>
required
Available options:
DiffieHellmanChaChaPoly1305,
None
external_metadata
object
required
version
enum<string>
required
Available options:
V1_0,
Unsupported

Response

200
application/json
Successfully used registration code
api_v2_key
string
required
encryption_public_key
string
required
identity_public_key
string
required
message
string
required
node_name
string
required