Get Operation
GET
/api/v1/operations/{operation_id}
agent-data call bd63936c-8611-45a8-8ad8-083aa4c51aa9 get-operation --operation_id <operation_id>curl "https://d1vrh75868.execute-api.us-east-2.amazonaws.com/api/v1/operations/{operation_id}" -H "Authorization: Bearer <YOUR_API_KEY>"Return the state of a long-running flight-search operation.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” operation_id
required
Operation Id
Specify the operation identifier returned alongside an asynchronous flight-search job. You may send either the bare operation suffix or the full operations/… resource name; the server normalizes missing prefixes automatically. The API returns 404 if the normalized operation ID is unknown.
string
Specify the operation identifier returned alongside an asynchronous flight-search job. You may send either the bare operation suffix or the full operations/… resource name; the server normalizes missing prefixes automatically. The API returns 404 if the normalized operation ID is unknown.
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Envelope[OperationResource]
object
data
required
OperationResource
object
id
required
Id
string
done
required
Done
boolean
status
required
SearchJobStatus
string
progress
resource
Resource
string
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
meta
required
ResponseMeta
object
cache
Any of:
CacheMetadata
object
hit
required
Hit
boolean
ttl_seconds
required
Ttl Seconds
integer
null
resource
required
Resource
string
request_id
Request Id
string
sources_used
Sources Used
Array<string>
processing_time_ms
required
Processing Time Ms
integer
warnings
Warnings
Array<object>
WarningItemobject
code
required
Code
string
source
required
Source
string
message
required
Message
string
Example
{ "data": { "status": "pending", "resource": "operation" }}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
Example generated
{ "detail": [ { "ctx": {}, "loc": [ "example" ], "msg": "example", "type": "example", "input": "example" } ]}