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

# API overview

> Trigger investigations programmatically with the Wild Moose Execution API

The Wild Moose Execution API lets you trigger investigations programmatically - from CI/CD pipelines, custom alerting systems, or any tool that can make HTTP requests.

<Tip>
  You don't need to memorize the API. The [Moose Builder](/features/builder) already knows every endpoint and can help you integrate Wild Moose into your workflows.
</Tip>

## Base URL

```
https://api.wildmoose.ai
```

## What you can do

<Columns cols={3}>
  <Card title="Execute a playbook" icon="play" href="/api-reference/endpoint/execute-playbook">
    Run an investigation for a single production issue.
  </Card>

  <Card title="Batch execute" icon="layer-group" href="/api-reference/endpoint/batch-execute">
    Investigate multiple issues in a single request.
  </Card>

  <Card title="List playbooks" icon="list" href="/api-reference/endpoint/list-playbooks">
    Retrieve all available playbooks for your organization.
  </Card>
</Columns>

## Authentication

All API requests require a Bearer token (JWT) in the `Authorization` header. See [Authentication](/api-reference/authentication) for details on obtaining and using tokens.

```bash theme={null}
curl -X POST https://api.wildmoose.ai/playbook/execution \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"bookName": "perf-checks", "time": "2025-01-15T10:30:00Z"}'
```

## Response format

All endpoints return JSON. Successful investigation responses include:

* **`highlights`** - AI-generated root cause analysis and summary.
* **`gadgetsHighlights`** - per-action findings and key insights.
* **`actionResults`** - structured results from each action with links to source tools.
* **`actionableMitigations`** - structured remediation steps with all the parameters needed to execute each mitigation (automatically, even).

<Info>
  When you pass a `channelId`, Wild Moose also posts the enrichment results to the specified channel and returns an `enrichmentLink` in the response.
</Info>
