Get an instruction (ALPHA)
curl --request GET \
--url https://api.platform.dakota.xyz/instructions/{instruction_id} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.platform.dakota.xyz/instructions/{instruction_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/instructions/{instruction_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/instructions/{instruction_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "2vWxInstruction0000000000000",
"payment_agent_id": "2vWxAgent0000000000000000000",
"status": "executed",
"actions": [
{
"type": "create_recipient",
"create_recipient": {
"name": "Alice"
}
}
],
"downstream": [
{
"recipient_id": "2vWxRecipient000000000000000"
}
]
}{
"type": "https://docs.dakota.xyz/api-reference/errors#invalid-identifier",
"title": "Invalid Identifier",
"status": 400,
"detail": "invalid instruction id"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#not-found",
"title": "Not Found",
"status": 404,
"detail": "agentic payments are not enabled"
}Agentic Payments
Get an instruction (ALPHA)
Alpha — early access.
Returns the accepted proposal - its action series and the per-action downstream artifacts actuation produced.
GET
/
instructions
/
{instruction_id}
Get an instruction (ALPHA)
curl --request GET \
--url https://api.platform.dakota.xyz/instructions/{instruction_id} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.platform.dakota.xyz/instructions/{instruction_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/instructions/{instruction_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/instructions/{instruction_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "2vWxInstruction0000000000000",
"payment_agent_id": "2vWxAgent0000000000000000000",
"status": "executed",
"actions": [
{
"type": "create_recipient",
"create_recipient": {
"name": "Alice"
}
}
],
"downstream": [
{
"recipient_id": "2vWxRecipient000000000000000"
}
]
}{
"type": "https://docs.dakota.xyz/api-reference/errors#invalid-identifier",
"title": "Invalid Identifier",
"status": 400,
"detail": "invalid instruction id"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#not-found",
"title": "Not Found",
"status": 404,
"detail": "agentic payments are not enabled"
}Was this page helpful?
⌘I

