One approval and the job it is
curl --request GET \
--url https://api.pramaan.dev/v1/approvals/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pramaan.dev/v1/approvals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pramaan.dev/v1/approvals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"approval_id": "<string>",
"capability": "<string>",
"price_micro": 123,
"requested_by": {
"kind": "<string>",
"act": "<string>",
"member_id": "<string>"
},
"created_at": "<string>",
"expires_at": "<string>",
"job": {
"job_id": "<string>",
"capability": "<string>",
"status": "running",
"created_at": "<string>",
"updated_at": "<string>",
"result": "<unknown>",
"error": {
"code": "<string>",
"message": "<string>",
"effect": "none"
},
"progress": {
"total": 123,
"done": 123
},
"charged_micro": 123,
"held_micro": 123
},
"input": "<unknown>"
}{
"error": {
"code": "addendum_required",
"message": "<string>",
"next": "<string>",
"request_id": "<string>",
"retryable": true,
"effect": "none",
"slot": "<string>",
"required_micro": 123,
"reason": "balance",
"top_up": {
"message": "<string>",
"links": [
{
"label": "<string>",
"url": "<string>"
}
],
"balance_micro": 123,
"required_micro": 123
},
"available_micro": 123,
"plan": "<string>",
"needs": [
{
"kind": "approval",
"detail": "<string>",
"step": "<string>"
}
]
}
}platform
One approval and the job it is
GET
/
v1
/
approvals
/
{id}
One approval and the job it is
curl --request GET \
--url https://api.pramaan.dev/v1/approvals/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pramaan.dev/v1/approvals/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pramaan.dev/v1/approvals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"approval_id": "<string>",
"capability": "<string>",
"price_micro": 123,
"requested_by": {
"kind": "<string>",
"act": "<string>",
"member_id": "<string>"
},
"created_at": "<string>",
"expires_at": "<string>",
"job": {
"job_id": "<string>",
"capability": "<string>",
"status": "running",
"created_at": "<string>",
"updated_at": "<string>",
"result": "<unknown>",
"error": {
"code": "<string>",
"message": "<string>",
"effect": "none"
},
"progress": {
"total": 123,
"done": 123
},
"charged_micro": 123,
"held_micro": 123
},
"input": "<unknown>"
}{
"error": {
"code": "addendum_required",
"message": "<string>",
"next": "<string>",
"request_id": "<string>",
"retryable": true,
"effect": "none",
"slot": "<string>",
"required_micro": 123,
"reason": "balance",
"top_up": {
"message": "<string>",
"links": [
{
"label": "<string>",
"url": "<string>"
}
],
"balance_micro": 123,
"required_micro": 123
},
"available_micro": 123,
"plan": "<string>",
"needs": [
{
"kind": "approval",
"detail": "<string>",
"step": "<string>"
}
]
}
}Authorizations
API key: sk_live_…