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

# accept()

> **accept**(`input`, `options`): `Promise`\<[`HarnessRunAcceptance`](/docs/agent-sdk/harness-sdk/harness/accept#harnessrunacceptance)>

**Parameters**

| Parameter | Type |
| - | - |
| `input` | `string` |
| `options` | [`HarnessRunAcceptanceOptions`](/docs/agent-sdk/harness-sdk/harness/accept#harnessrunacceptanceoptions) |

**Returns**
`Promise`\<[`HarnessRunAcceptance`](/docs/agent-sdk/harness-sdk/harness/accept#harnessrunacceptance)>

## HarnessRunAcceptance

**Properties**
**duplicate**

> `readonly` **duplicate**: `boolean`

**runId**

> `readonly` **runId**: `string`

**status**

> `readonly` **status**: `"accepted"` | `"running"` | `"awaiting_approval"` | `"resume_pending"` | `"completed"` | `"failed"` | `"canceled"` | `"outcome_unknown"`

## HarnessRunAcceptanceOptions

`key` is the required idempotency key. It is a non-blank string of at most 512 bytes. A repeat call with the same key and the same input returns the existing run with `duplicate` set to `true`. A repeat call with the same key and different input throws.

`admit` is an optional admission check. It runs inside the admission transaction, after the key lookup and before the run is inserted. When it returns `false`, no run is inserted and `accept()` rejects.

`journalSeq` is an optional actor-journal sequence. The harness records it as the run's journal boundary before the run executes. It must be a non-negative safe integer, and any other value throws.

**Properties**
**admit?**

> `readonly` `optional` **admit?**: () => `boolean`

Evaluated inside the persistent admission transaction before a run is inserted.

**journalSeq?**

> `readonly` `optional` **journalSeq?**: `number`

Exact actor-journal boundary captured before this run can begin execution.

**key**

> `readonly` **key**: `string`
