Skip to content

intents_get

GET
/intents/{intent_id}
curl --request GET \
--url https://example.com/intents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Get a stored intent by its ID.

intent_id
required

Unique identifier for an intent, assigned by the caller.

string format: uuid

Intent ID

Intent found

Media type application/json

A user-signed message

object
payload
required

The data payload that is being signed.

object
attrs
required

Attribute values that parameterize the template.

object
fields
required
object
key
additional properties
id
required

Unique identifier for this intent.

string format: uuid
template_id
required

ID of the template that defines the rules for fulfilling this intent.

string
signature
required
One of:

Ed25519 signature

object
Ed25519
required

Ed25519 signature

object
pub_key
required

The [PubKey] of the signer

string
signature
required

The [Signature]

string
Example generated
{
"payload": {
"attrs": {
"fields": {
"additionalProperty": "example"
}
},
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"template_id": "example"
},
"signature": {
"Ed25519": {
"pub_key": "example",
"signature": "example"
}
}
}

Intent not found

Media type application/json
object
message
required
string
Example generated
{
"message": "example"
}

Internal error

Media type application/json
object
message
required
string
Example generated
{
"message": "example"
}