Run data endpoint
curl --request POST \
--url https://api.aireserve.com/v1/monid/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"endpoint": "<string>",
"input": {},
"price": {}
}
'import requests
url = "https://api.aireserve.com/v1/monid/run"
payload = {
"provider": "<string>",
"endpoint": "<string>",
"input": {},
"price": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>', endpoint: '<string>', input: {}, price: {}})
};
fetch('https://api.aireserve.com/v1/monid/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Data endpoints
Run data endpoint
Execute a data endpoint with your AI Reserve key; the run is billed to your AI Reserve wallet at monid’s published price for that endpoint. Sync providers answer inline with the run body and the brokered provider’s own HTTP status (200 data, 404 no match, 429 …, all with status: "COMPLETED"); async providers answer 202 with status: "READY". Every answer carries an aireserve envelope whose job_id is what you poll at GET /v1/monid/runs/{run_id} — monid’s own runId is an upstream identifier and is not accepted there.
POST
/
v1
/
monid
/
run
Run data endpoint
curl --request POST \
--url https://api.aireserve.com/v1/monid/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"endpoint": "<string>",
"input": {},
"price": {}
}
'import requests
url = "https://api.aireserve.com/v1/monid/run"
payload = {
"provider": "<string>",
"endpoint": "<string>",
"input": {},
"price": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>', endpoint: '<string>', input: {}, price: {}})
};
fetch('https://api.aireserve.com/v1/monid/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).
Body
application/json
Response
200
Default Response