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

# Get Package

> Retrieve a specific package by version

## Path Parameters

<ParamField path="organizationId" type="string" required>
  Organization ID
</ParamField>

<ParamField path="projectId" type="string" required>
  Project ID
</ParamField>

<ParamField path="version" type="string" required>
  Package version (e.g., `1.0.0`)
</ParamField>

## Response

Returns the complete Package object.

```json theme={null}
{
  "id": "pkg123",
  "projectId": "proj123",
  "version": "1.0.0",
  "components": [
    {
      "id": "comp123",
      "name": "ProductCard",
      "type": "view",
      "version": 5
    },
    {
      "id": "comp124",
      "name": "ArticleLayout",
      "type": "layout",
      "version": 2
    }
  ],
  "assets": [
    {
      "id": "asset123",
      "name": "logo-primary",
      "url": "https://cdn.metabind.ai/assets/logo-2x.png",
      "componentId": "comp123"
    },
    {
      "id": "asset124",
      "name": "hero-background",
      "url": "https://cdn.metabind.ai/assets/hero-image.jpg",
      "componentId": "comp124"
    }
  ],
  "compiled": {
    "components": {
      "ProductCard": "const body = (props) => { ... }",
      "ArticleLayout": "const body = (props, children) => { ... }"
    },
    "assets": {
      "ProductCard": [
        { "name": "logo-primary", "url": "https://cdn.metabind.ai/assets/logo-2x.png" }
      ],
      "ArticleLayout": [
        { "name": "hero-background", "url": "https://cdn.metabind.ai/assets/hero-image.jpg" }
      ]
    }
  },
  "dependencies": [
    {
      "projectId": "proj456",
      "version": "2.0.0"
    }
  ],
  "metadata": {
    "author": "jane.doe@metabind.ai",
    "description": "Core UI components v1",
    "tags": ["ui", "core"]
  },
  "createdAt": "2024-03-20T10:00:00Z",
  "updatedAt": "2024-03-20T10:00:00Z"
}
```

## Error Responses

### Package Not Found

```json theme={null}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Package version 1.0.0 was not found"
  }
}
```

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/packages/1.0.0" \
    -H "Authorization: Bearer YOUR_JWT"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.metabind.ai/app/v1/organizations/org123/projects/proj456/packages/1.0.0',
    {
      headers: {
        'Authorization': 'Bearer YOUR_JWT'
      }
    }
  );

  const pkg = await response.json();
  console.log(`Package ${pkg.version} has ${pkg.components.length} components`);
  ```
</CodeGroup>
