cURL
curl --request POST \
--url http://localhost:4100/v1/agents/pair \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"publicKey": "<string>",
"signature": "<string>",
"timestamp": 123
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>', publicKey: '<string>', signature: '<string>', timestamp: 123})
};
fetch('http://localhost:4100/v1/agents/pair', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Agents
Post v1agentspair
cURL
curl --request POST \
--url http://localhost:4100/v1/agents/pair \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"publicKey": "<string>",
"signature": "<string>",
"timestamp": 123
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>', publicKey: '<string>', signature: '<string>', timestamp: 123})
};
fetch('http://localhost:4100/v1/agents/pair', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Body
application/json