Clatter LabsHelp Center

How do I get a run's final answer and files?

How-toUpdated
curl "https://api.agent.clatterlabs.xyz/v1/runs/RUN_ID?include=files" \
  -H "Authorization: Bearer $CLATTER_API_KEY" \
  -H "X-Clatter-Account: $CLATTER_ACCOUNT_ID"

You need runs:read.

What to read#

  • status: completed, failed or cancelled once it's finished.
  • output: Cosmos's final answer (only when completed).
  • files: { name, bytes } for each saved output, plus content when you add ?include=files.
  • steps and usage.tokens: how much work it took.
  • error: { code, message } when it failed.

Fetch the run whenever you need it, and save important results on your side too.

Learn more#

Related articles

Still need help?

Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.

Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyz
For deleting your whole account or the data of one service.