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

# Get Collection Metadata

> Get runtime metadata for API execution

## Authentication

Supports both Firebase and API Key authentication.

## Path Parameters

<ParamField path="collection_id" type="string" required>
  Collection ID (UUID)
</ParamField>

### Example Request

```bash theme={null}
curl https://api.sari-platform.com/api/collections/550e8400-e29b-41d4-a716-446655440000/metadata \
  -H "X-Client-ID: client_abc123" \
  -H "X-API-Key: <api_key>"
```

## Response

Returns runtime metadata needed for API execution.

<ResponseField name="id" type="string">
  Collection ID
</ResponseField>

<ResponseField name="name" type="string">
  Collection name
</ResponseField>

<ResponseField name="description" type="string">
  Collection description
</ResponseField>

<ResponseField name="base_url" type="string">
  API base URL (from OpenAPI servers)
</ResponseField>

<ResponseField name="authentication" type="object">
  Authentication configuration
</ResponseField>

### Example Response

```json theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Stripe Payment API",
  "description": "Payment processing API",
  "base_url": "https://api.stripe.com",
  "authentication": {
    "type": "bearer",
    "name": "Authorization",
    "value": "Bearer sk_test_xxx"
  }
}
```

## Authentication Types

| Type     | Description                          |
| -------- | ------------------------------------ |
| `apiKey` | API key in header or query           |
| `bearer` | Bearer token in Authorization header |
| `basic`  | Basic auth credentials               |
| `none`   | No authentication                    |

## Errors

| Status | Description                  |
| ------ | ---------------------------- |
| 401    | Invalid authentication       |
| 403    | No access to this collection |
| 404    | Collection not found         |
