Policy Engine

Resume a paused policy so its existing ID, scope, and rules are immediately enforced again. Resuming an active policy returns it unchanged.

post/v2/policy-engine/policies/{policyId}/resume

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

policyId, string required

The ID of the policy to resume.

Query parameters

groupType, 'project' | 'entity'

Whether policy operations use the entity ID or the project ID from the caller's credential.

Selects whether this request uses the entity ID or the project ID from the caller's credential as the policy group for lookups, writes, and simulation. Defaults to project. Use entity for the policies of an entity's custodial accounts. This is independent of a policy's scope, which says whether a policy applies to a single account or to the whole project.

Headers

X-Idempotency-Key, string

An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

Response

Successfully resumed policy.

Policy required
id, string required

The unique identifier for the policy.

description, string

An optional human-readable description of the policy. Policy descriptions can consist of alphanumeric characters, spaces, commas, and periods, and be 50 characters or less.

scope, 'project' | 'account' required

The scope of the policy. Only one project-level policy can exist at any time.

status, 'active' | 'paused'

The current evaluation status of the policy.

pausedAt, string date-time

When the policy was paused. Present only when status is paused.

resumeAt, string date-time

When a paused policy resumes automatically. Absent for an indefinite pause.

rules, Rule[] required

A list of rules that comprise the policy. Each policy is limited to 100 rules and a total serialized size of 8 MiB.

createdAt, string required

The ISO 8601 timestamp at which the Policy was created.

updatedAt, string required

The ISO 8601 timestamp at which the Policy was last updated.

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "description": "Default policy",
  "scope": "project",
  "status": "active",
  "pausedAt": "2026-09-29T12:00:00Z",
  "resumeAt": "2026-09-30T12:00:00Z",
  "rules": [
    {
      "action": "accept",
      "operation": "signEvmTransaction",
      "criteria": [
        {
          "type": "ethValue",
          "ethValue": "1000000000000000000",
          "operator": "<="
        },
        {
          "type": "evmAddress",
          "addresses": [
            "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
            "0x1234567890123456789012345678901234567890"
          ],
          "operator": "in"
        }
      ]
    },
    {
      "action": "accept",
      "operation": "signSolTransaction",
      "criteria": [
        {
          "type": "solAddress",
          "addresses": [
            "HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT"
          ],
          "operator": "in"
        }
      ]
    }
  ],
  "createdAt": "2025-03-25T12:00:00Z",
  "updatedAt": "2025-03-26T12:00:00Z"
}

Changes

    • breaking

      added to the rules/items response property oneOf list for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    6 more changes in this revision