Skip to main content
POST
/
public
/
v1
/
query
/
list_activities
List Activities
curl --request POST \
  --url https://api.turnkey.com/public/v1/query/list_activities \
  --header 'Content-Type: application/json' \
  --header 'X-Stamp: <api-key>' \
  --data '
{
  "organizationId": "<string>",
  "filterByStatus": [
    "ACTIVITY_STATUS_CREATED"
  ],
  "paginationOptions": {
    "limit": "<string>",
    "before": "<string>",
    "after": "<string>"
  },
  "filterByType": [
    "ACTIVITY_TYPE_CREATE_API_KEYS"
  ]
}
'
{
  "activities": [
    {
      "id": "<string>",
      "organizationId": "<string>",
      "status": "ACTIVITY_STATUS_CREATED",
      "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
      "intent": {
        "createReadOnlySessionIntent": {},
        "deleteSubOrganizationIntent": {
          "deleteWithoutExport": true
        }
      },
      "result": {
        "updateRootQuorumResult": {},
        "updateAllowedOriginsResult": {},
        "signRawPayloadsResult": {
          "signatures": [
            {
              "r": "<string>",
              "s": "<string>",
              "v": "<string>"
            }
          ]
        }
      },
      "votes": [
        {
          "id": "<string>",
          "userId": "<string>",
          "user": {
            "userId": "<string>",
            "userName": "<string>",
            "authenticators": [
              {
                "transports": [
                  "AUTHENTICATOR_TRANSPORT_BLE"
                ],
                "attestationType": "<string>",
                "aaguid": "<string>",
                "credentialId": "<string>",
                "model": "<string>",
                "credential": {
                  "publicKey": "<string>",
                  "type": "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR"
                },
                "authenticatorId": "<string>",
                "authenticatorName": "<string>",
                "createdAt": {
                  "seconds": "<string>",
                  "nanos": "<string>"
                },
                "updatedAt": {
                  "seconds": "<string>",
                  "nanos": "<string>"
                }
              }
            ],
            "apiKeys": [
              {
                "credential": {
                  "publicKey": "<string>",
                  "type": "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR"
                },
                "apiKeyId": "<string>",
                "apiKeyName": "<string>",
                "createdAt": {
                  "seconds": "<string>",
                  "nanos": "<string>"
                },
                "updatedAt": {
                  "seconds": "<string>",
                  "nanos": "<string>"
                },
                "expirationSeconds": "<string>"
              }
            ],
            "userTags": [
              "<string>"
            ],
            "oauthProviders": [
              {
                "providerId": "<string>",
                "providerName": "<string>",
                "issuer": "<string>",
                "audience": "<string>",
                "subject": "<string>",
                "createdAt": {
                  "seconds": "<string>",
                  "nanos": "<string>"
                },
                "updatedAt": {
                  "seconds": "<string>",
                  "nanos": "<string>"
                }
              }
            ],
            "createdAt": {
              "seconds": "<string>",
              "nanos": "<string>"
            },
            "updatedAt": {
              "seconds": "<string>",
              "nanos": "<string>"
            },
            "userEmail": "<string>",
            "userPhoneNumber": "<string>"
          },
          "activityId": "<string>",
          "selection": "VOTE_SELECTION_APPROVED",
          "message": "<string>",
          "publicKey": "<string>",
          "signature": "<string>",
          "scheme": "<string>",
          "createdAt": {
            "seconds": "<string>",
            "nanos": "<string>"
          }
        }
      ],
      "fingerprint": "<string>",
      "canApprove": true,
      "canReject": true,
      "createdAt": {
        "seconds": "<string>",
        "nanos": "<string>"
      },
      "updatedAt": {
        "seconds": "<string>",
        "nanos": "<string>"
      },
      "failure": {
        "code": 123,
        "message": "<string>",
        "details": [
          {
            "@type": "<string>"
          }
        ]
      }
    }
  ]
}

Authorizations

X-Stamp
string
header
required

Body

application/json
organizationId
string
required

Unique identifier for a given Organization.

filterByStatus
enum<string>[]

Array of Activity Statuses filtering which Activities will be listed in the response.

Available options:
ACTIVITY_STATUS_CREATED,
ACTIVITY_STATUS_PENDING,
ACTIVITY_STATUS_COMPLETED,
ACTIVITY_STATUS_FAILED,
ACTIVITY_STATUS_CONSENSUS_NEEDED,
ACTIVITY_STATUS_REJECTED
paginationOptions
object
filterByType
enum<string>[]

Array of Activity Types filtering which Activities will be listed in the response.

Available options:
ACTIVITY_TYPE_CREATE_API_KEYS,
ACTIVITY_TYPE_CREATE_USERS,
ACTIVITY_TYPE_CREATE_PRIVATE_KEYS,
ACTIVITY_TYPE_SIGN_RAW_PAYLOAD,
ACTIVITY_TYPE_CREATE_INVITATIONS,
ACTIVITY_TYPE_ACCEPT_INVITATION,
ACTIVITY_TYPE_CREATE_POLICY,
ACTIVITY_TYPE_DISABLE_PRIVATE_KEY,
ACTIVITY_TYPE_DELETE_USERS,
ACTIVITY_TYPE_DELETE_API_KEYS,
ACTIVITY_TYPE_DELETE_INVITATION,
ACTIVITY_TYPE_DELETE_ORGANIZATION,
ACTIVITY_TYPE_DELETE_POLICY,
ACTIVITY_TYPE_CREATE_USER_TAG,
ACTIVITY_TYPE_DELETE_USER_TAGS,
ACTIVITY_TYPE_CREATE_ORGANIZATION,
ACTIVITY_TYPE_SIGN_TRANSACTION,
ACTIVITY_TYPE_APPROVE_ACTIVITY,
ACTIVITY_TYPE_REJECT_ACTIVITY,
ACTIVITY_TYPE_DELETE_AUTHENTICATORS,
ACTIVITY_TYPE_CREATE_AUTHENTICATORS,
ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG,
ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS,
ACTIVITY_TYPE_SET_PAYMENT_METHOD,
ACTIVITY_TYPE_ACTIVATE_BILLING_TIER,
ACTIVITY_TYPE_DELETE_PAYMENT_METHOD,
ACTIVITY_TYPE_CREATE_POLICY_V2,
ACTIVITY_TYPE_CREATE_POLICY_V3,
ACTIVITY_TYPE_CREATE_API_ONLY_USERS,
ACTIVITY_TYPE_UPDATE_ROOT_QUORUM,
ACTIVITY_TYPE_UPDATE_USER_TAG,
ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG,
ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2,
ACTIVITY_TYPE_CREATE_ORGANIZATION_V2,
ACTIVITY_TYPE_CREATE_USERS_V2,
ACTIVITY_TYPE_ACCEPT_INVITATION_V2,
ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION,
ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2,
ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS,
ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2,
ACTIVITY_TYPE_UPDATE_USER,
ACTIVITY_TYPE_UPDATE_POLICY,
ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2,
ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3,
ACTIVITY_TYPE_CREATE_WALLET,
ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS,
ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY,
ACTIVITY_TYPE_RECOVER_USER,
ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE,
ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE,
ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2,
ACTIVITY_TYPE_SIGN_TRANSACTION_V2,
ACTIVITY_TYPE_EXPORT_PRIVATE_KEY,
ACTIVITY_TYPE_EXPORT_WALLET,
ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4,
ACTIVITY_TYPE_EMAIL_AUTH,
ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT,
ACTIVITY_TYPE_INIT_IMPORT_WALLET,
ACTIVITY_TYPE_IMPORT_WALLET,
ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY,
ACTIVITY_TYPE_IMPORT_PRIVATE_KEY,
ACTIVITY_TYPE_CREATE_POLICIES,
ACTIVITY_TYPE_SIGN_RAW_PAYLOADS,
ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION,
ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS,
ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS,
ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5,
ACTIVITY_TYPE_OAUTH,
ACTIVITY_TYPE_CREATE_API_KEYS_V2,
ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION,
ACTIVITY_TYPE_EMAIL_AUTH_V2,
ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6,
ACTIVITY_TYPE_DELETE_PRIVATE_KEYS,
ACTIVITY_TYPE_DELETE_WALLETS,
ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2,
ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION,
ACTIVITY_TYPE_INIT_OTP_AUTH,
ACTIVITY_TYPE_OTP_AUTH,
ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7,
ACTIVITY_TYPE_UPDATE_WALLET

Response

200 - application/json

A successful response.

activities
object[]
required

A list of Activities.