curl --request GET \
--url https://api.prime.coinbase.com/v1/activities/{activity_id}{
"activity": {
"id": "<string>",
"reference_id": "<string>",
"category": "OTHER_ACTIVITY_CATEGORY",
"type": "OTHER_ACTIVITY_TYPE",
"secondary_type": "NO_SECONDARY_TYPE",
"status": "OTHER_ACTIVITY_STATUS",
"created_by": "<string>",
"title": "<string>",
"description": "<string>",
"user_actions": [
{
"action": "OTHER_ACTION",
"user_id": "<string>",
"timestamp": "<string>"
}
],
"transactions_metadata": {
"consensus": {
"approval_deadline": "<string>",
"has_passed_consensus": true
}
},
"account_metadata": {
"consensus": {
"approval_deadline": "<string>",
"has_passed_consensus": true
}
},
"orders_metadata": {},
"symbols": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>",
"hierarchy_type": "HIERARCHY_TYPE_UNSPECIFIED"
}
}Retrieve an activity by its activity ID - this endpoint can retrieve both portfolio and entity activities when passed the appropriate API key
curl --request GET \
--url https://api.prime.coinbase.com/v1/activities/{activity_id}{
"activity": {
"id": "<string>",
"reference_id": "<string>",
"category": "OTHER_ACTIVITY_CATEGORY",
"type": "OTHER_ACTIVITY_TYPE",
"secondary_type": "NO_SECONDARY_TYPE",
"status": "OTHER_ACTIVITY_STATUS",
"created_by": "<string>",
"title": "<string>",
"description": "<string>",
"user_actions": [
{
"action": "OTHER_ACTION",
"user_id": "<string>",
"timestamp": "<string>"
}
],
"transactions_metadata": {
"consensus": {
"approval_deadline": "<string>",
"has_passed_consensus": true
}
},
"account_metadata": {
"consensus": {
"approval_deadline": "<string>",
"has_passed_consensus": true
}
},
"orders_metadata": {},
"symbols": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>",
"hierarchy_type": "HIERARCHY_TYPE_UNSPECIFIED"
}
}ActivitiesService activitiesService =
PrimeServiceFactory.createActivitiesService(client);
GetActivityByActivityIdRequest request = new
GetActivityByActivityIdRequest("portfolio_id", "activity_id");
GetActivityByActivityIdResponse response =
activitiesService.getActivityByActivityId(request);
Id of the activity to retrieve
A successful response.
Show child attributes
A unique id for the account activity
A reference for orders and transactions, n/a for other category types
OTHER_ACTIVITY_CATEGORY, ACTIVITY_CATEGORY_ORDER, ACTIVITY_CATEGORY_TRANSACTION, ACTIVITY_CATEGORY_ACCOUNT, ACTIVITY_CATEGORY_ALLOCATION, ACTIVITY_CATEGORY_LENDING OTHER_ACTIVITY_TYPE, ACTIVITY_TYPE_LIMIT_ORDER, ACTIVITY_TYPE_MARKET_ORDER, ACTIVITY_TYPE_TWAP_ORDER, ACTIVITY_TYPE_BLOCK_TRADE, ACTIVITY_TYPE_VWAP_ORDER, ACTIVITY_TYPE_STOP_LIMIT_ORDER, ACTIVITY_TYPE_DEPOSIT, ACTIVITY_TYPE_WITHDRAWAL, ACTIVITY_TYPE_INTERNAL_TRANSFER, ACTIVITY_TYPE_CREATE_WALLET, ACTIVITY_TYPE_REMOVE_WALLET, ACTIVITY_TYPE_UPDATE_WALLET, ACTIVITY_TYPE_CAST_VOTE, ACTIVITY_TYPE_ENABLE_VOTING, ACTIVITY_TYPE_STAKE, ACTIVITY_TYPE_UNSTAKE, ACTIVITY_TYPE_CHANGE_VALIDATOR, ACTIVITY_TYPE_RESTAKE, ACTIVITY_TYPE_ADDRESS_BOOK, ACTIVITY_TYPE_TEAM_MEMBERS, ACTIVITY_TYPE_BILLING, ACTIVITY_TYPE_SECURITY, ACTIVITY_TYPE_API, ACTIVITY_TYPE_SETTINGS, ACTIVITY_TYPE_SMART_CONTRACT, ACTIVITY_TYPE_ALLOCATION_IN, ACTIVITY_TYPE_ALLOCATION_OUT, ACTIVITY_TYPE_ALLOCATION_IN_REVERSAL, ACTIVITY_TYPE_ALLOCATION_OUT_REVERSAL, ACTIVITY_TYPE_CONVERSION, ACTIVITY_TYPE_PRINCIPAL_OUT, ACTIVITY_TYPE_PRINCIPAL_IN, ACTIVITY_TYPE_COLLATERAL_OUT, ACTIVITY_TYPE_COLLATERAL_IN, ACTIVITY_TYPE_INTEREST_OUT, ACTIVITY_TYPE_INTEREST_IN, ACTIVITY_TYPE_WEB3_MESSAGE, ACTIVITY_TYPE_WEB3_TRANSACTION, ACTIVITY_TYPE_WEB3_DEVICE_RECOVERY, ACTIVITY_TYPE_WEB3_RECREATE_BACKUP, ACTIVITY_TYPE_WEB3_ONBOARDING NO_SECONDARY_TYPE, ACTIVITY_SECONDARY_TYPE_BUY, ACTIVITY_SECONDARY_TYPE_SELL, ACTIVITY_SECONDARY_TYPE_INTERNAL_TRANSFER, ACTIVITY_SECONDARY_TYPE_SWEEP_TRANSFER_TYPE, ACTIVITY_SECONDARY_TYPE_WEB3_SIGNER, ACTIVITY_SECONDARY_TYPE_WEB3_WALLET OTHER_ACTIVITY_STATUS, ACTIVITY_STATUS_CANCELLED, ACTIVITY_STATUS_PROCESSING, ACTIVITY_STATUS_COMPLETED, ACTIVITY_STATUS_EXPIRED, ACTIVITY_STATUS_REJECTED, ACTIVITY_STATUS_FAILED Id of user who created the activity
Title of the activity
Description detail of the activity
Show child attributes
List of currencies included in an activity
Time activity was created at
Time for latest status update of account activity
HIERARCHY_TYPE_UNSPECIFIED, HIERARCHY_TYPE_PORTFOLIO, HIERARCHY_TYPE_ENTITY Was this page helpful?