Authentication

All API requests must be authenticated by passing your account's API key as a bearer token. Here's how you might use that in various API calls:

Authorization: Bearer YOUR_API_KEY
          curl -X POST https://delegatezero.com/api/v1/decisions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request": "Create a monthly website analytics report for a client.",
  }'
          import axios from "axios";

const decision = await axios.post(
  "https://delegatezero.com/api/v1/decisions",
  {
    request: "Create a monthly website analytics report for a client.",
  },
  {
    headers: {
      Authorization: `Bearer ${process.env.API_KEY}`
    }
  }
);
          import requests
import os

response = requests.post(
  "https://delegatezero.com/api/v1/decisions",
  headers={
    "Authorization": "Bearer {os.environ['API_KEY']}",
    "Content-Type": "application/json"
  },
  json={
    "request": "Create a monthly website analytics report for a client.",
  }
)

Keep your API key secret - requests made with your key are treated as actions taken on your behalf.

Sorry, we don't have any results for that search. If you need assistance, please contact us.