---
updatedAt: 2026-03-30T09:15:45.000Z
---

# Download signed certificate

Returns the public processor certificate used to sign OpenDSR responses.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenDSR API",
    "version": "1.0",
    "description": "AppsFlyer OpenDSR Requests API\n\nUse the OpenDSR Requests API as described in this section to implement DSR compliance. \n\n- **OpenDSR Request**: Perform one of the above request types: access, portability, erasure, rectification.\n- **Status Request**: Query the current status of an OpenDSR request.\n- **Discovery Request**: Inquire as to the supported API version and Data Format.\n- **Cancellation**: Cancel an OpenDSR request during its pending phase\n"
  },
  "servers": [
    {
      "url": "https://hq1.appsflyer.com/",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/api/gdpr/v1/stub/certificate": {
      "get": {
        "tags": [
          "Stub & Testing"
        ],
        "summary": "Download signed certificate",
        "operationId": "get-stub-certificate",
        "description": "Returns the public processor certificate used to sign OpenDSR responses.",
        "responses": {
          "200": {
            "description": "Certificate file",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Unable to fetch certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrorData"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "For API authorization, use the same V2 API token as for Pull API. \nAn admin user can retrieve the token from the API token page in the dashboard.\nAdd the token into the request header as follows: `Authorization: Bearer <V2_API_Token>`\n"
      }
    },
    "schemas": {
      "APIErrorData": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "HTTP status code",
            "example": 400
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "Invalid subject_request_id"
          },
          "af_gdpr_code": {
            "type": "string",
            "description": "AppsFlyer-specific error code for detailed error identification.\n\n**Request State Errors (e2xx)**\n- `e211`: Unable to cancel request with invalid status\n- `e212`: Request not permitted\n- `e213`: Request already exists\n- `e214`: Request not found\n- `e215`: One or more subject-identities already exist in an open request\n\n**Validation Errors (e3xx)**\n- `e311`: Invalid request content type\n- `e312`: Invalid API version\n- `e313`: Invalid subject_request_id\n- `e314`: Invalid submitted_time format\n- `e315`: Invalid status_callback_url length\n- `e316`: Invalid status_callback_url format\n- `e317`: Invalid app_id format\n- `e318`: Invalid identity_type\n- `e319`: Application platform does not match identity types\n- `e321`: LAT users are not supported via API\n- `e322`: Invalid subject_request_type\n- `e323`: Invalid subject_identities format\n- `e324`: Invalid subject_identities length\n- `e325`: Invalid subject_identities value\n- `e326`: Invalid JSON format in request body\n\n**Authorization Errors (e4xx)**\n- `e411`: AppID is incorrect or does not belong to your account\n- `e412`: No permissions to cancel erasure request\n- `e413`: No permissions to view request\n- `e414`: Too many requests in batch\n- `e415`: Duplicated subject_request_id in batch\n- `e416`: Duplicated subject_identity in batch\n- `e417`: PropertyID in request is not the same as in batch\n\n**Server Errors (e5xx)**\n- `e511`: Internal problem. Wait 60 mins and try again\n",
            "enum": [
              "e211",
              "e212",
              "e213",
              "e214",
              "e215",
              "e311",
              "e312",
              "e313",
              "e314",
              "e315",
              "e316",
              "e317",
              "e318",
              "e319",
              "e321",
              "e322",
              "e323",
              "e324",
              "e325",
              "e326",
              "e411",
              "e412",
              "e413",
              "e414",
              "e415",
              "e416",
              "e417",
              "e511"
            ],
            "example": "e313"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```