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.
Available options:
DiffieHellmanChaChaPoly1305
,
None
external_metadata.intra_sender
external_metadata.recipient
external_metadata.scheduled_time
external_metadata.signature
Available options:
V1_0
,
Unsupported
Successfully used registration code