GET
/
v2
/
usage
/
job
/
{job_id}
curl --request GET \
  --url https://mango.sievedata.com/v2/usage/job/{job_id} \
  --header 'X-API-Key: <api-key>'
{
  "job_id": "<string>",
  "function_name": "<string>",
  "function_owner_name": "<string>",
  "function_id": "<string>",
  "cost": 123
}

Authorizations

X-API-Key
string
header
required

The Sieve API key to authenticate with.

Path Parameters

job_id
string
required

The job ID to fetch the cost for.

Query Parameters

aggregated
boolean
default:
true

If true, returns sum of all child job costs and the job itself.

Response

200
application/json
Successful Response
job_id
string
required

ID of the job

function_name
string
required

Name of the function

function_owner_name
string
required

Organization name of the function owner

function_id
string
required

ID of the function

cost
number
required

Cost of the job, either aggregated or not