---
title: "Test an inline remote task"
method: POST
path: "/api/{org_id}/tasks/test"
tags: ["RemoteTasks"]
---

# Test an inline remote task

`POST /api/{org_id}/tasks/test`

## 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/test`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/tasks/test/post.ts> (a function with typed inputs; its response is checked against the schema)

Calls an inline Remote Task candidate once using the submitted contract and write-only Secret material. No Task, version, execution record, or Secret row is written.

## Path parameters

- `org_id` string, required

## Request body

- object: A complete inline Remote Task candidate and the sample sent by a stateless connection test. The candidate fields intentionally match registration so the UI can send the same form state without first creating a Task head.
  - `auth` union: Authentication submitted while registering a new Remote Task. The material is write-only. The backend creates and attaches the stable reference; clients never manufacture or order Secret resources.
    - object
      - `type` 'none', required
    - object
      - `secret` union, required
        - object
          - `type` 'token', required
          - `value` string, required
        - object
          - `password` string, required
          - `type` 'basic', required
          - `username` string, required
      - `type` 'bearer', required
    - object
      - `secret` union, required
        - object
          - `type` 'token', required
          - `value` string, required
        - object
          - `password` string, required
          - `type` 'basic', required
          - `username` string, required
      - `type` 'basic', required
    - object
      - `header_name` string, required
      - `secret` union, required
        - object
          - `type` 'token', required
          - `value` string, required
        - object
          - `password` string, required
          - `type` 'basic', required
          - `username` string, required
      - `type` 'api_key_header', required
  - `contentType` string, nullable
  - `customHeaders` CreateRemoteTaskHeaderBody[], nullable
    - `key` string, required
    - `secret` union
      - object
        - `type` 'token', required
        - `value` string, required
      - object
        - `password` string, required
        - `type` 'basic', required
        - `username` string, required
    - `value` string, nullable
  - `description` string, nullable
  - `endpoint` string, required
  - `httpMethod` string, nullable
  - `maxAttempts` integer, nullable
  - `maxConcurrency` integer, nullable
  - `name` string, required
  - `requestTemplate` string, nullable
  - `responseSchema` string, nullable
  - `signing` CreateRemoteTaskSigningBody
    - `enabled` boolean, required
    - `keyId` string, nullable
    - `secret` union
      - object
        - `type` 'token', required
        - `value` string, required
      - object
        - `password` string, required
        - `type` 'basic', required
        - `username` string, required
  - `timeoutMs` integer, nullable
  - `input` unknown
  - `metadata` unknown

## Response `200`

- object: Result of testing an inline Remote Task candidate. Unlike publication, this response carries no Task because the operation is deliberately stateless.
  - `error` string, nullable
  - `report` VerificationReportBody, required: The raw exchange a test connection produced, shown to the operator whether it passed or failed.
    - `latencyMs` integer, required
    - `parsedOutput` unknown
    - `rawRequest` string, required
    - `rawResponse` string, required
    - `statusCode` integer, nullable
  - `verified` boolean, required

## Other responses

- `400`: Bad Request

---

[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)
