I'm looking to interact with the flyte REST API an...
# ask-the-community
j
I'm looking to interact with the flyte REST API and admin database to be able to query for execution input / output data. I have 2 questions: 1. How to query input / output data from the database? I can find references to proto input files, but can't find any reference to where the outputs exist. I also wonder if there is an example of decoding the downloaded proto files. 2. How to authenticate the REST API? I found the API swagger docs, but I neither see examples of using the API or how to authenticate. I can generate JWT's easily enough against our IdP, but passing that as a standard Authorization header doesn't appear sufficient.
m
For 1. you're probably looking at the following endpoint which provides a JSON of
full_inputs
and
full_outputs
. Note these are in their literal state so parsing them into 'usable' values might require some work.
Copy code
https://{your.flyte.env}/api/v1/data/executions/{project}/{environment}/{execution_id}
205 Views