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

# Clarify: Get Resource

> Get a resource. Clarify Get Resource reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get a resource.

> [!NOTE]
>
> Tool ID: `clarify_get_resource`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_get_resource',
  {
    "workspace": "example",
    "object": "example",
    "id": "id_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_get_resource --input '{
  "workspace": "example",
  "object": "example",
  "id": "id_123"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": {
      "type": "example",
      "id": "id_123",
      "attributes": {}
    },
    "included": [
      {
        "type": "example",
        "id": "id_123",
        "attributes": {}
      }
    ],
    "meta": {}
  }
}
```

Use `deepline describe clarify_get_resource --json` for the latest machine-readable contract.

## Input reference

Returns a single resource as a JSON:API document. Use `include` to embed related resources under `relationships` and return them in `included`.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.object` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.id` | `string` | Yes | — | The unique ID of the record. |
| `payload.include` | `string` | No | — | Comma-separated relationship names to embed under `relationships` and return in `included`, e.g. `include=company,deals`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns a single resource as a JSON:API document. Use `include` to embed related resources under `relationships` and return them in `included`.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "object": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "id": {
        "type": "string",
        "description": "The unique ID of the record."
      },
      "include": {
        "type": "string",
        "description": "Comma-separated relationship names to embed under `relationships` and return in `included`, e.g. `include=company,deals`."
      }
    },
    "required": [
      "workspace",
      "object",
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | The resource. |
| `result.data.data.type` | `string` | Yes | — | The resource type, e.g. `person` or `deal`. |
| `result.data.data.id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data.attributes` | `record` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data.relationships` | `record` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.data.data.meta` | `object` | No | — | Per-request metadata about the resource. |
| `result.data.data.meta.effective_access_level` | `"owner" \| "edit" \| "view" \| "none"` | No | — | The requesting user's effective access to this record (`owner`, `edit`, `view`, or `none`). Allowed: `owner`, `edit`, `view`, `none`. |
| `result.data.included` | `array` | Yes | — | Related resources requested via `include`. |
| `result.data.included[].type` | `string` | Yes | — | The resource type, e.g. `person` or `deal`. |
| `result.data.included[].id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.included[].attributes` | `record` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.included[].relationships` | `record` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.data.meta` | `object` | Yes | — | Response metadata. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "object",
            "description": "The resource.",
            "properties": {
              "type": {
                "type": "string",
                "description": "The resource type, e.g. `person` or `deal`."
              },
              "id": {
                "type": "string",
                "description": "The unique ID of the resource."
              },
              "attributes": {
                "type": "object",
                "description": "Field values keyed by field name; available fields depend on the object’s schema.",
                "additionalProperties": {}
              },
              "relationships": {
                "type": "object",
                "description": "Related resources keyed by relationship name, present when requested via `include`.",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "description": "A single resource reference, an array of references, or `null` when the relationship is empty.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "description": "The type of the referenced resource."
                            },
                            "id": {
                              "type": "string",
                              "description": "The unique ID of the referenced resource."
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "The type of the referenced resource."
                              },
                              "id": {
                                "type": "string",
                                "description": "The unique ID of the referenced resource."
                              }
                            },
                            "required": [
                              "type",
                              "id"
                            ],
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "meta": {
                      "type": "object",
                      "description": "Metadata about the relationship.",
                      "properties": {
                        "count": {
                          "type": "integer",
                          "description": "Total number of related records for a to-many relationship, independent of the number embedded in `data` (which is capped).",
                          "minimum": 0
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "description": "Per-request metadata about the resource.",
                "properties": {
                  "effective_access_level": {
                    "type": "string",
                    "description": "The requesting user's effective access to this record (`owner`, `edit`, `view`, or `none`).",
                    "enum": [
                      "owner",
                      "edit",
                      "view",
                      "none"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "id",
              "attributes"
            ],
            "additionalProperties": false
          },
          "included": {
            "type": "array",
            "description": "Related resources requested via `include`.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "The resource type, e.g. `person` or `deal`."
                },
                "id": {
                  "type": "string",
                  "description": "The unique ID of the resource."
                },
                "attributes": {
                  "type": "object",
                  "description": "Field values keyed by field name; available fields depend on the object’s schema.",
                  "additionalProperties": {}
                },
                "relationships": {
                  "type": "object",
                  "description": "Related resources keyed by relationship name, present when requested via `include`.",
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "data": {
                        "description": "A single resource reference, an array of references, or `null` when the relationship is empty.",
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "The type of the referenced resource."
                              },
                              "id": {
                                "type": "string",
                                "description": "The unique ID of the referenced resource."
                              }
                            },
                            "required": [
                              "type",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "The type of the referenced resource."
                                },
                                "id": {
                                  "type": "string",
                                  "description": "The unique ID of the referenced resource."
                                }
                              },
                              "required": [
                                "type",
                                "id"
                              ],
                              "additionalProperties": false
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "meta": {
                        "type": "object",
                        "description": "Metadata about the relationship.",
                        "properties": {
                          "count": {
                            "type": "integer",
                            "description": "Total number of related records for a to-many relationship, independent of the number embedded in `data` (which is capped).",
                            "minimum": 0
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "data"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "type",
                "id",
                "attributes"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "description": "Response metadata.",
            "properties": {},
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "included",
          "meta"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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