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

# Create Sentry Link

> Link a Sentry project to an Aether project

Creates a link between an Aether project and a Sentry project. This enables Sentry error context to be available to agents working on the linked project.

## Authentication

Requires a valid Bearer token. Requires an active Sentry connection.

## Request Body

<ParamField body="project_id" type="string" required>
  Aether project ID (UUID).
</ParamField>

<ParamField body="sentry_project_id" type="string" required>
  Sentry project ID.
</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "project_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "sentry_project_id": "123456"
  }
  ```
</RequestExample>

## Response

<ResponseField name="id" type="string" required>
  Link ID (UUID).
</ResponseField>

<ResponseField name="project_id" type="string" required>
  Aether project ID.
</ResponseField>

<ResponseField name="sentry_project_id" type="string" required>
  Sentry project ID.
</ResponseField>

<ResponseField name="sentry_project_slug" type="string" required>
  Sentry project slug.
</ResponseField>

<ResponseField name="created_at" type="string" required>
  ISO 8601 timestamp.
</ResponseField>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "e5f6a7b8-9012-34ab-cdef-567890123def",
    "project_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "sentry_project_id": "123456",
    "sentry_project_slug": "my-app",
    "created_at": "2025-01-15T10:30:00Z"
  }
  ```
</ResponseExample>

## Errors

| Status | Description                                                 |
| ------ | ----------------------------------------------------------- |
| `400`  | Bad Request — missing required fields                       |
| `401`  | Unauthorized — missing or invalid token                     |
| `403`  | Forbidden — no Sentry connection                            |
| `404`  | Not Found — Aether project or Sentry project does not exist |
| `409`  | Conflict — link already exists                              |
