Estimate one saved or prebuilt Play
curl --request GET \
--url https://code.deepline.com/api/v2/plays/{name}/cost \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/plays/{name}/cost', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/plays/{name}/cost"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"reference": "<string>",
"costEstimate": {
"status": "available",
"source": "observed",
"unit": "row",
"lowCredits": 123,
"highCredits": 123,
"sampleRunCount": 123,
"basedOnRunId": "<string>",
"modelVersion": "<string>"
},
"observedCost": {}
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Plays and runs
Estimate one saved or prebuilt Play
Returns reference and costEstimate using workspace pricing, plus observedCost for prebuilts. Reads only the selected Play and its bounded successful-run cost history. Does not start a run.
GET
/
api
/
v2
/
plays
/
{name}
/
cost
Estimate one saved or prebuilt Play
curl --request GET \
--url https://code.deepline.com/api/v2/plays/{name}/cost \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/plays/{name}/cost', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/plays/{name}/cost"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"reference": "<string>",
"costEstimate": {
"status": "available",
"source": "observed",
"unit": "row",
"lowCredits": 123,
"highCredits": 123,
"sampleRunCount": 123,
"basedOnRunId": "<string>",
"modelVersion": "<string>"
},
"observedCost": {}
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Authentication: workspace API key in
Authorization: Bearer <key>.
URL-encode path values, including / characters inside Play references and run IDs.
Errors
| Status | Meaning |
|---|---|
| 401 | The request conflicts with current state or a retained request identity. |
| 404 | The request conflicts with current state or a retained request identity. |
| 500 | The request conflicts with current state or a retained request identity. |
Authorizations
Create a workspace API key in the Deepline dashboard before calling authenticated endpoints.
Path Parameters
The name returned by the related Deepline API call.
Minimum string length:
1