Device Deletion API

The Device Deletion API lets you submit a GDPR or CCPA data deletion request for a device in one of your apps. After Chartboost accepts a request, it stops tracking that device in the app you specified.

To restrict tracking for many devices at once from the Chartboost platform, upload a CSV file instead. See App Privacy Settings.

Before you get started πŸ”—

Complete the API Access & Authentication process. You will not be able to submit deletion requests programmatically until this step is completed.

Endpoints πŸ”—

Version 5 Endpoint Description
POST /v5/apps/{app_id}/devices/{device_id}/deletion-requests Submit a GDPR or CCPA deletion request for a device in an app.

Create a device deletion request πŸ”—

Version 5
POST /v5/apps/{app_id}/devices/{device_id}/deletion-requests

Records a deletion request for one device in one app. Each call creates a new request, even if you already submitted the same device for the same app.

Required Headers πŸ”—

Authorization: Bearer {access-token}
Content-Type: application/json;charset=UTF-8

Path Parameters πŸ”—

Parameter Type Description
app_id string ID of the app the device belongs to. The app must belong to your company.
device_id string The device’s advertising identifier: the IDFA on iOS or the GAID on Android.

Request Body πŸ”—

Field Type Required Valid Values Description
privacy_law string Yes gdpr, ccpa The privacy law the request is made under.
store_id string Yes App Store ID or package name Your app’s ID in its store, for example 1234567890 for an App Store app or com.example.game for a Google Play app.

Request Example πŸ”—

POST /v5/apps/5c4860fb0000000000000000/devices/1ABB4B54-87B1-4A05-8DBE-40C76BC1C11C/deletion-requests HTTP/1.1
Host: api.chartboost.com
Authorization: Bearer czZCaGRSa3F0MzpnWDFmQmF0M2J
Content-Type: application/json;charset=UTF-8

{
  "privacy_law": "gdpr",
  "store_id": "com.example.game"
}

Response Example πŸ”—

{
  "id": "6adf63ffb06c966a372a529f",
  "app_id": "5c4860fb0000000000000000",
  "device_id": "1ABB4B54-87B1-4A05-8DBE-40C76BC1C11C",
  "privacy_law": "gdpr",
  "store_id": "com.example.game",
  "date_created": "2026-10-26T14:30:23.532547"
}
Field Type Description
id string ID of the deletion request.
app_id string ID of the app, as sent in the path.
device_id string The device’s advertising identifier, as sent in the path.
privacy_law string gdpr or ccpa, as sent in the request body.
store_id string The app’s store ID, as sent in the request body.
date_created string Date and time the request was recorded.

Responses πŸ”—

  • 201 - Created. The deletion request was recorded.
  • 400 - Bad Request. The request body or app_id is invalid, for example privacy_law is missing.
  • 401 - Unauthorized. The access token is missing or invalid. The response has no body.
  • 403 - Forbidden (device_deletion_forbidden). Your account is not allowed to submit deletion requests.
  • 404 - Not Found (app_not_found). The app does not exist or does not belong to your company.

Error Response Example πŸ”—

Errors other than 401 return a detail list. Each item gives the location of the problem (loc), a message (msg) and an error type (type).

{
  "detail": [
    {
      "loc": ["body", "privacy_law"],
      "msg": "must not be null",
      "type": "value_error.missing"
    }
  ]
}

Migrating from version 3 πŸ”—

The legacy version 3 endpoints will be retired on August 13, 2027. After that date they return HTTP 410 Gone.

Β  Version 3 (retiring) Version 5
Endpoint POST /v3/devices/{device_id}/gdpr/delete
POST /v3/devices/{device_id}/ccpa/delete
POST /v3/devices/{device_id}/delete
POST /v5/apps/{app_id}/devices/{device_id}/deletion-requests
Host dashapi.chartboost.com api.chartboost.com
Authentication user_id + user_signature Authorization: Bearer {access-token}. See API Access & Authentication.
App ID app_id in the request body app_id in the path
Privacy law In the path (/gdpr/delete, /ccpa/delete) privacy_law in the request body: gdpr or ccpa
Store ID store_id in the request body store_id in the request body (unchanged)
Success response 200 with {"response": []} 201 with the created request
Errors 400 for every error 400, 401, 403 or 404. See Responses.