> ## 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}
{
  "data": {
    "version": "1.0.0",
    "components": [
      {
        "id": "comp123",
        "version": 5,
        "hash": "sha256:b064acd1b548604fd6253fd69e32b9d60f7f5f75aff8094fa96b76cefdadb079",
        "status": "published"
      },
      {
        "id": "comp124",
        "version": 2,
        "hash": "sha256:22fbe0367fb61ec8aa439296baa45dbc2664d3af0d8c9d59c397e08063dec3df",
        "status": "published"
      }
    ],
    "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"
      }
    ],
    "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 { data: pkg } = await response.json();
  console.log(`Package ${pkg.version} has ${pkg.components.length} components`);
  ```
</CodeGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.