---
title: "Get the remote task draft"
method: GET
path: "/api/{org_id}/tasks/{entity_id}/draft"
tags: ["RemoteTasks"]
---

# Get the remote task draft

`GET /api/{org_id}/tasks/{entity_id}/draft`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/tasks/{entity_id}/draft`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/tasks/:entity_id/draft/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the head's unpublished draft, if it has one.

## Path parameters

- `org_id` string, required
- `entity_id` string, required

## Response `200`

- object
  - `auth` RemoteTaskAuthResponse, required: Auth on the way out: the shape, and whether a Secret is configured.
    - `headerName` string, nullable
    - `type` string, required
    - `usesSecret` boolean, required
  - `contentType` string, required
  - `createdAt` integer, required
  - `customHeaders` RemoteTaskHeaderResponse[], required
    - `key` string, required
    - `usesSecret` boolean, required
    - `value` string, nullable
  - `description` string, nullable
  - `draftSourceVersion` integer, nullable
  - `endpoint` string, required
  - `entityId` string, required
  - `httpMethod` string, required
  - `id` string, required
  - `isActive` boolean, required
  - `isDraft` boolean, required
  - `isReferenceable` boolean, required: Whether an Experiment may pin this row.
  - `maxAttempts` integer, required
  - `maxConcurrency` integer, required
  - `name` string, required
  - `orgId` string, required
  - `referencedBy` integer, nullable: Number of live Experiments pinned to any published version of this head. Populated by the list endpoint, which can compute all heads in one batch; omitted from single-version responses.
  - `requestTemplate` string, nullable
  - `responseSchema` string, required
  - `signing` RemoteTaskSigningResponse, required: Signing on the way out. The key id is shown because the receiver needs it to select a key; the secret behind it is not.
    - `enabled` boolean, required
    - `keyId` string, nullable
    - `usesSecret` boolean, required
  - `taskRef` string, nullable: `name@version`, present only when there is a version to pin.
  - `timeoutMs` integer, required
  - `updatedAt` integer, required
  - `verificationError` string, nullable
  - `verificationStatus` string, required
  - `verifiedAt` integer, nullable
  - `version` integer, required: `0` marks the head's draft, which no Experiment can reference.

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
