cURL
curl --request POST \ --url https://api.deck.co/v2/tasks/{task_id}/run \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "credential_id": "<string>", "source_id": "<string>", "session_id": "<string>", "input": "<unknown>", "request_id": "<string>" } '
{ "id": "<string>", "object": "<string>", "status": "<string>", "result": "<string>", "task_id": "<string>", "credential_id": "<string>", "session_id": "<string>", "workflow_id": "<string>", "agent_id": "<string>", "source_id": "<string>", "runtime_ms": 123, "input": null, "output": null, "storage": [ { "id": "<string>", "object": "<string>", "file_name": "<string>", "file_type": "<string>", "file_size": 123, "created_at": "2023-11-07T05:31:56Z" } ], "errors": [ { "type": "<string>", "code": "<string>", "message": "<string>", "field": "<string>" } ], "interaction": null, "canceled_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "request_id": "<string>" }
Clerk JWT, client credential JWT, or secret key (sk_live_...)
Created
Show child attributes
Was this page helpful?