cURL
curl --request POST \
--url http://localhost:4100/v1/agents/session \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"nonce": "<string>",
"signature": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', nonce: '<string>', signature: '<string>'})
};
fetch('http://localhost:4100/v1/agents/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}{
"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 v1agentssession
cURL
curl --request POST \
--url http://localhost:4100/v1/agents/session \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"nonce": "<string>",
"signature": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', nonce: '<string>', signature: '<string>'})
};
fetch('http://localhost:4100/v1/agents/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}