Recover a tool execution by its idempotency key
curl --request GET \
--url https://code.deepline.com/api/v2/executions/by-key/{key} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/executions/by-key/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/executions/by-key/{key}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"toolId": "<string>",
"executionRecovery": {
"idempotencyKey": "<string>",
"state": "running",
"replayed": true,
"expiresAt": "2023-11-07T05:31:56Z"
},
"requestId": "<string>",
"response": {},
"responseStatus": 123
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Tools
Recover a tool execution by its idempotency key
Observe a keyed execution in the authenticated workspace. Completed records include the original response. This lookup does not launch paid work. An unused key returns EXECUTION_NOT_FOUND (404); an expired result returns IDEMPOTENCY_KEY_EXPIRED (410). X-Deepline-Idempotency-Supported: true identifies servers that support this contract, including on a recognized unused-key response.
GET
/
api
/
v2
/
executions
/
by-key
/
{key}
Recover a tool execution by its idempotency key
curl --request GET \
--url https://code.deepline.com/api/v2/executions/by-key/{key} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/executions/by-key/{key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/executions/by-key/{key}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"toolId": "<string>",
"executionRecovery": {
"idempotencyKey": "<string>",
"state": "running",
"replayed": true,
"expiresAt": "2023-11-07T05:31:56Z"
},
"requestId": "<string>",
"response": {},
"responseStatus": 123
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Authentication: workspace API key in
Authorization: Bearer <key>.
URL-encode path values, including / characters inside Play references and run IDs.
Errors
| Status | Meaning |
|---|---|
| 400 | The request conflicts with current state or a retained request identity. |
| 401 | The request conflicts with current state or a retained request identity. |
| 403 | The request conflicts with current state or a retained request identity. |
| 404 | The request conflicts with current state or a retained request identity. |
| 409 | The request conflicts with current state or a retained request identity. |
| 410 | The request conflicts with current state or a retained request identity. |
| 500 | The request conflicts with current state or a retained request identity. |
| 503 | A required service is unavailable. Respect Retry-After when present. |
Authorizations
Path Parameters
Response
A successful Runtime API response.