Skip to content

Retrieve a sponsorship policy

Retrieves a sponsorship policy by its ID.

HTTP Request

GET /v2/account/sponsorship_policies/:id

Query Parameters

  • apikey

Your Pimlico API key.

Returns

Returns the sponsorship policy object.

Example Request

curl -X GET "https://api.pimlico.io/v2/account/sponsorship_policies/sp_tangible_knight?apikey=YOUR_API_KEY"

Example Response

{
  "id": "sp_tangible_knight",
  "policy_name": "Pimlico Example Gas Fund",
  "policy_status": "active",
  "created_at": "2024-05-23T15:23:38Z",
  "start_time": null,
  "end_time": null,
  "chain_ids": {
    "allowlist": [
      10,
      8453,
      34443,
      690,
      7777777
    ]
  },
  "limits": {
    "global": {
      "user_operation_spending": {
        "amount": 10000000,
        "currency": "USD"
      }
    }
  }
}