Skip to content

Delete SDK Authentication key

delete

/app_group/sdk_authentication/delete

Use this endpoint to delete an SDK Authentication key for your app.

Prerequisites

To use this endpoint, you’ll need an API key with the sdk_authentication.delete permission.

Rate limit

We apply the default Braze rate limit of 250,000 requests per hour to this endpoint, as documented in API rate limits.

Request body

1
2
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
1
2
3
4
{
  "app_id": "App API Identifier",
  "key_id": "key id"
}

Request parameters

Example request

1
2
3
4
5
6
7
curl --location --request DELETE 'https://rest.iad-01.braze.com/app_group/sdk_authentication/delete' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY' \
--data-raw '{
  "app_id": "01234567-89ab-cdef-0123-456789abcdef",
  "key_id": "fedcba98-7654-3210-fedc-ba9876543210"
}'

Response

1
2
3
4
5
6
7
8
9
10
{
  "keys": [
    {
      "id": "abcdef12-3456-7890-abcd-ef1234567890",
      "rsa_public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvvD+fgA0YuCUd/v35htn...\n-----END PUBLIC KEY-----",
      "description": "SDK Authentication Key for iOS App",
      "is_primary": true
    }
  ]
}

Response parameters

Validation rules

This endpoint has the following validation rules:

  • The key_id must be a valid SDK Authentication key ID.
  • The app_id must be a valid app API identifier.
  • The SDK Authentication key must exist for the specified app.
  • The primary SDK Authentication key can’t be deleted.
HOW HELPFUL WAS THIS PAGE?
New Stuff!