Skip to main content
GET
/
accounts
/
{account_id}
/
activities
/
{activity_id}
Get Activity
curl --request GET \
  --url https://api.example.com/accounts/{account_id}/activities/{activity_id}

Get Activity

Returns detailed information about a specific activity. See Activities & Events for the full activity definition.

Request

GET /accounts/:account_id/activities/:activity_id

Path parameters

ParameterTypeDescription
account_idstringThe sub-account ID
activity_idintegerThe activity ID

Examples

curl https://prime-api.legend.xyz/accounts/acc_2o0yiljtp378/activities/1 \
  -H "Authorization: Bearer $LEGEND_QUERY_KEY"
Response
{
  "id": 1,
  "status": "completed",
  "quark_intent": {
    "id": 7,
    "mercator_version": "1.2.0",
    "intent_type": "supply",
    "intent": {
      "amount": "1000000",
      "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "comet": "0xb125E6687d4313864e53df431d5425969c15Eb2F",
      "chain_id": 8453
    }
  },
  "executions": [
    {
      "execution_type": "transaction",
      "chain_id": 8453,
      "transaction_hash": "0xabc123...def456",
      "status": "executed",
      "executed_at": "2025-06-15T10:30:15Z",
      "reverted_at": null,
      "actions": [
        {
          "action_type": "COMET_SUPPLY",
          "expected_values": {
            "amount": 1000000,
            "asset_symbol": "USDC",
            "chain_id": 8453,
            "comet": "0xb125E6687d4313864e53df431d5425969c15Eb2F",
            "price": "0.9998",
            "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
          },
          "observed_values": {
            "amount": 1000000,
            "asset_symbol": "USDC",
            "chain_id": 8453,
            "comet": "0xb125E6687d4313864e53df431d5425969c15Eb2F",
            "price": "0.9998",
            "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
          }
        }
      ]
    }
  ]
}

Errors

StatusCodeDescription
404not_foundActivity doesn’t exist or belongs to a different account