> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit a tool call

> Send JSON matching the tool schema and keep the task ID for follow-up reads.

**`POST /v1/{tool_key}`** starts a task. Supply the tool's input object as the request body and authenticate with a credential allowed to use it.

```bash theme={null}
curl -fsS https://api.mouter.ai/v1/image_compress \
  -H "Authorization: Bearer ${MOUTER_API_KEY}" \
  -H 'Content-Type: application/json' \
  -H "Idempotency-Key: ${MOUTER_IDEMPOTENCY_KEY}" \
  --data '{"image_url":"https://mouter.ai/brand/og-default.png"}'
```

Set `MOUTER_IDEMPOTENCY_KEY` to a unique value you retain for this intended execution. An accepted submission returns HTTP `202` and a task in `data`. Save `data.task_id` and [read the task](/docs/api-reference/tasks.md) to get its result.

If you lose the response and acceptance is unknown, reuse the **same key, credential authorization, tool, and input** within 24 hours. A replay returns HTTP `200` and `Idempotency-Replayed: true`. After the retry window expires, inspect the original task before starting another execution.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.