Count Play runs and delivered Monitor findings by day
curl --request POST \
--url https://code.deepline.com/api/v2/plays/activity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timeZone": "UTC",
"days": 30,
"endDate": "2023-12-25"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({timeZone: 'UTC', days: 30, endDate: '2023-12-25'})
};
fetch('https://code.deepline.com/api/v2/plays/activity', 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/activity"
payload = {
"timeZone": "UTC",
"days": 30,
"endDate": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"timeZone": "<string>",
"groupBy": "kind",
"endDate": "<string>",
"buckets": [
{
"key": "<string>",
"label": "<string>",
"startAt": 123,
"endAt": 123,
"groups": [
{
"group": "<string>",
"count": 123
}
],
"failedPlayRuns": 123,
"complete": {
"playRuns": true,
"monitorDeliveries": true
}
}
],
"coverage": {
"playRunsEarliestCompleteAt": 123,
"monitorDeliveriesEarliestCompleteAt": 123,
"monitorDeliveriesCompleteThroughAt": 123,
"projectionPending": true,
"earliestPendingAt": 123
},
"asOfAt": 123
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Plays and runs
Count Play runs and delivered Monitor findings by day
Returns bounded, tenant-scoped daily counts from durable Play runs and delivered Monitor receipts. Each bucket reports source coverage; incomplete history is never a zero claim.
POST
/
api
/
v2
/
plays
/
activity
Count Play runs and delivered Monitor findings by day
curl --request POST \
--url https://code.deepline.com/api/v2/plays/activity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timeZone": "UTC",
"days": 30,
"endDate": "2023-12-25"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({timeZone: 'UTC', days: 30, endDate: '2023-12-25'})
};
fetch('https://code.deepline.com/api/v2/plays/activity', 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/activity"
payload = {
"timeZone": "UTC",
"days": 30,
"endDate": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"timeZone": "<string>",
"groupBy": "kind",
"endDate": "<string>",
"buckets": [
{
"key": "<string>",
"label": "<string>",
"startAt": 123,
"endAt": 123,
"groups": [
{
"group": "<string>",
"count": 123
}
],
"failedPlayRuns": 123,
"complete": {
"playRuns": true,
"monitorDeliveries": true
}
}
],
"coverage": {
"playRunsEarliestCompleteAt": 123,
"monitorDeliveriesEarliestCompleteAt": 123,
"monitorDeliveriesCompleteThroughAt": 123,
"projectionPending": true,
"earliestPendingAt": 123
},
"asOfAt": 123
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Authentication: workspace API key in
Authorization: Bearer <key>.
Errors
| Status | Meaning |
|---|---|
| 400 | The request conflicts with current state or a retained request identity. |
| 401 | 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.
Body
application/json
Calendar window and grouping.