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

# Get Production

> Retrieve a specific production by ID

## Overview

Returns detailed information about a single production identified by its unique ID.

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the production
</ParamField>

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl https://entertheatre.com/api/productions/prod-001
  ```

  ```javascript JavaScript theme={null}
  const productionId = 'prod-001';
  const response = await fetch(`https://entertheatre.com/api/productions/${productionId}`);
  const production = await response.json();
  ```

  ```python Python theme={null}
  import requests

  production_id = 'prod-001'
  response = requests.get(f'https://entertheatre.com/api/productions/{production_id}')
  production = response.json()
  ```
</CodeGroup>

## Response

<ResponseField name="id" type="string" required>
  Unique identifier for the production
</ResponseField>

<ResponseField name="show_id" type="string" required>
  ID of the associated show
</ResponseField>

<ResponseField name="theatre_id" type="string" required>
  ID of the theatre where the production runs
</ResponseField>

<ResponseField name="opening_date" type="string" required>
  Opening date of the production (ISO 8601 format)
</ResponseField>

<ResponseField name="closing_date" type="string">
  Closing date of the production (ISO 8601 format), null if open-ended
</ResponseField>

### Example Response

```json theme={null}
{
  "id": "prod-001",
  "show_id": "550e8400-e29b-41d4-a716-446655440000",
  "theatre_id": "theatre-001",
  "opening_date": "1986-10-09",
  "closing_date": null
}
```

## Error Response

```json theme={null}
{
  "error": "Production not found"
}
```

## Status Codes

| Status | Description                         |
| ------ | ----------------------------------- |
| `200`  | Success - returns production object |
| `404`  | Production not found                |
| `500`  | Server error                        |
