Skip to Content
Harnix
API reference

Complete an account connection for a run

POST
/v2/runs/{run_id}/connection/complete

Path Parameters

run_id*Run Id
Formatuuid

Header Parameters

authorization?string|null
origin?string|null

Request Body

application/json
  1. body
code*Code
Length1 <= length <= 2048
iss?string|null
state*State
Length1 <= length <= 512

Response Body

Successful Response

application/json
  1. response
connected?Connected
Defaulttrue
resumed*Resumed
run*
Example Request
curl -X POST 'https://api.harnix.vn/v2/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/connection/complete' \  -H 'Content-Type: application/json' \  -d '{  "code": "string",  "state": "string"}'
Example Response
{  "connected": true,  "resumed": true,  "run": {    "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",    "attempt": 0,    "conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "string",    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "end_user_id": "c5ac076e-1e7a-4f0d-9ad4-cae618230def",    "error": "string",    "finished_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "input": "string",    "kind": "string",    "max_attempts": 0,    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "result": {},    "serial_key": "string",    "started_at": "2019-08-24T14:15:22Z",    "state": "string",    "waiting_until": "2019-08-24T14:15:22Z"  }}