---
title: "Retrieve a resource from a data partition"
method: GET
path: "/partitions/{partitionKey}/v1/collections/{collectionKey}/resources/{resourceId}"
tags: ["Resources"]
---

# Retrieve a resource from a data partition

`GET /partitions/{partitionKey}/v1/collections/{collectionKey}/resources/{resourceId}`

## Request

- Base URL: `https://.clinia.cloud`
- URL: `https://.clinia.cloud/partitions/{partitionKey}/v1/collections/{collectionKey}/resources/{resourceId}`
- Auth: API key in header `X-Clinia-API-Key`

Retrieve a resource from a data partition.

## Path parameters

- `partitionKey` string, required
- `collectionKey` string, required
- `resourceId` string, required

## Query parameters

- `includes` string[]

## Response `200`

A successful response.

- V1PartitionResource: The included resources or relationships. All odd number of path segments are relationships, and all even number of path segments are resources.
  - `id` string, required: Id of the resource.
  - `type` string, required: Type of the resource.
  - `meta` V1Meta
    - `createdAt` string, date-time: Instant of creation of the resource.
    - `identifier` V1Identifier[]: Identifiers of the resource. Note: Combination of `source`, `value` and `use` must be unique.
      - `id` string: A sequence of Unicode characters.
      - `system` string: String of characters used to identify a name or a resource.
      - `value` string: A sequence of Unicode characters.
      - `use` string: A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents.
      - `period` V1Period: A time period defined by a start and end date and optionally time.
        - `id` string: A sequence of Unicode characters.
        - `start` string: A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates.
        - `end` string: A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates.
    - `source` string: The source of the resource.
    - `updatedAt` string, date-time: Last update of the resource.
  - `data` object, required: Dynamic data attributes, based on the resource type.
  - `contained` object: Resources contained in this top-level resource. Contained resources exists only within the context of this top-level resource.
  - `relativeIdentities` object: The relative identities associated with this resource.
  - `includes` unknown

## Other responses

- `404`: Returned when the resource type or the resource does not exist.

---

[API](https://skmtc.dev/clinia/apis/data-partition-api.md) - [All operations](https://skmtc.dev/clinia/apis/data-partition-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clinia/apis/data-partition-api/revisions/d95b0e95e86c?raw)
