Approve a mandate (BETA)
curl --request POST \
--url https://api.platform.dakota.xyz/mandates/{mandate_id}/approve \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"approver_public_key": "BHkApproverKeyQm",
"signature": "MEUCIQExampleSignature"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({approver_public_key: 'BHkApproverKeyQm', signature: 'MEUCIQExampleSignature'})
};
fetch('https://api.platform.dakota.xyz/mandates/{mandate_id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/mandates/{mandate_id}/approve"
payload = {
"approver_public_key": "BHkApproverKeyQm",
"signature": "MEUCIQExampleSignature"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/mandates/{mandate_id}/approve"
payload := strings.NewReader("{\n \"approver_public_key\": \"BHkApproverKeyQm\",\n \"signature\": \"MEUCIQExampleSignature\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "2vWxMandate00000000000000000",
"status": "active",
"approved_by_signer_id": "2vWxApprover0000000000000000"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#invalid-request",
"title": "Invalid Request",
"status": 400,
"detail": "approver must differ from the bound signer"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#not-found",
"title": "Not Found",
"status": 404,
"detail": "agentic payments are not enabled"
}Mandates
Approve a mandate (BETA)
Beta — early access.
A recognized signer OTHER than the bound one signs the mandate payload to activate it; arms its scheduled payments.
POST
/
mandates
/
{mandate_id}
/
approve
Approve a mandate (BETA)
curl --request POST \
--url https://api.platform.dakota.xyz/mandates/{mandate_id}/approve \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"approver_public_key": "BHkApproverKeyQm",
"signature": "MEUCIQExampleSignature"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({approver_public_key: 'BHkApproverKeyQm', signature: 'MEUCIQExampleSignature'})
};
fetch('https://api.platform.dakota.xyz/mandates/{mandate_id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/mandates/{mandate_id}/approve"
payload = {
"approver_public_key": "BHkApproverKeyQm",
"signature": "MEUCIQExampleSignature"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/mandates/{mandate_id}/approve"
payload := strings.NewReader("{\n \"approver_public_key\": \"BHkApproverKeyQm\",\n \"signature\": \"MEUCIQExampleSignature\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "2vWxMandate00000000000000000",
"status": "active",
"approved_by_signer_id": "2vWxApprover0000000000000000"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#invalid-request",
"title": "Invalid Request",
"status": 400,
"detail": "approver must differ from the bound signer"
}{
"type": "https://docs.dakota.xyz/api-reference/errors#not-found",
"title": "Not Found",
"status": 404,
"detail": "agentic payments are not enabled"
}Authorizations
Path Parameters
Response
Mandate activated
Available options:
pending, active, rejected, revoked, done The signer that cancelled the mandate while it was still pending (§8); absent otherwise.
The signer that cancelled the mandate after activation (§8); absent otherwise.
Was this page helpful?

