Skip to content
Management API Reference

Disable or re-enable JWT based legacy (anon, service_role) API keys. This API endpoint will be removed in the future, check for HTTP 404 Not Found.

put/v1/projects/{ref}/api-keys/legacy

OAuth scopes

  • secrets:write

The fine-grained token must include the following permissions to access this endpoint:

  • api_gateway_keys_write

Path parameters

  • ref
    Required
    string

    Project ref

Query parameters

  • enabled
    Required
    string

    Boolean string.

    Truthy values: true, 1, yes, on, y, enabled

    Falsy values: false, 0, no, off, n, disabled

Response codes

  • 200
  • 401
  • 403
  • 429

Response (200)

1
{
2
"enabled": true
3
}