Skip to content

Make your first API request

Create an agent, a key, and call it from your terminal in five minutes.

Steps

  • Agents → Create agent. Write two lines of instructions, keep Test, create.
  • Copy the agent id (agt_…) from its page.
  • API keys → Create API key → Test → Full access. Copy the key.
  • Run the request below. You'll get the agent's reply in output.text.
text
curl https://usegasket.xyz/api/v1/agents/agt_.../runs \
  -H "Authorization: Bearer gsk_test_..." \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello!"}'

Open Requests in the dashboard: your call is there with its response, latency and cost.