An Organization is the highest level of hierarchy in Turnkey. It can contain many Users, Private Keys, and Policies managed by a Root Quorum. The Root Quorum consists of a set of Users with a consensus threshold. This consensus threshold must be reached by Quorum members in order for any actions to take place.
See Root Quorum for more information
Create Sub-Organization
Create a new Sub-Organization
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateSubOrganizationIntentV4) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Update Root Quorum
Set the threshold and members of the root quorum. This must be approved by the current root quorum.
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (UpdateRootQuorumIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "threshold": 0,
- "userIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Invitations allow you to invite Users into your Organization via email. Alternatively, Users can be added directly without an Invitation if their ApiKey or Authenticator credentials are known ahead of time.
See Users for more information
Create Invitations
Create Invitations to join an existing Organization
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_INVITATIONS" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateInvitationsIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_INVITATIONS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Delete Invitation
Delete an existing Invitation
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_DELETE_INVITATION" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (DeleteInvitationIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_INVITATION",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "invitationId": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Policies allow for deep customization of the security of your Organization. They can be used to grant permissions or restrict usage of Users and Private Keys. The Policy Engine analyzes all of your Policies on each request to determine whether an Activity is allowed.
See Policy Overview for more information
Get Policy
Get details about a Policy
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
policyId required | string Unique identifier for a given Policy. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "policyId": "string"
}
Response samples
- 200
{- "policy": {
- "policyId": "string",
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "notes": "string",
- "consensus": "string",
- "condition": "string"
}
}
List Policies
List all Policies within an Organization
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
Responses
Request samples
- Payload
{- "organizationId": "string"
}
Response samples
- 200
{- "policies": [
- {
- "policyId": "string",
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "notes": "string",
- "consensus": "string",
- "condition": "string"
}
]
}
Create Policy
Create a new Policy
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_POLICY_V3" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreatePolicyIntentV3) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_POLICY_V3",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Delete Policy
Delete an existing Policy
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_DELETE_POLICY" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (DeletePolicyIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_POLICY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "policyId": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Update Policy
Update an existing Policy
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_UPDATE_POLICY" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (UpdatePolicyIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_UPDATE_POLICY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Remove Organization Feature
Removes an organization feature
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (RemoveOrganizationFeatureIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Set Organization Feature
Sets an organization feature
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (SetOrganizationFeatureIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Wallets contain collections of deterministically generated cryptographic public / private key pairs that share a common seed. Turnkey securely holds the common seed, but only you can access it. In most cases, Wallets should be preferred over Private Keys since they can be represented by a mnemonic phrase, used across a variety of cryptographic curves, and can derive many addresses.
Derived addresses can be used to create digital signatures using the corresponding underlying private key. See Signers for more information
Get Wallet
Get details about a Wallet
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
walletId required | string Unique identifier for a given Wallet. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "walletId": "string"
}
Response samples
- 200
{- "wallet": {
- "walletId": "string",
- "walletName": "string",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "exported": true
}
}
List Wallets Accounts
List all Accounts wirhin a Wallet
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
walletId required | string Unique identifier for a given Wallet. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "walletId": "string"
}
Response samples
- 200
{- "accounts": [
- {
- "organizationId": "string",
- "walletId": "string",
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
]
}
List Wallets
List all Wallets within an Organization
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
Responses
Request samples
- Payload
{- "organizationId": "string"
}
Response samples
- 200
{- "wallets": [
- {
- "walletId": "string",
- "walletName": "string",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "exported": true
}
]
}
Create Wallet
Create a Wallet and derive addresses
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_WALLET" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateWalletIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_WALLET",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Create Wallet Accounts
Derive additional addresses using an existing wallet
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateWalletAccountsIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Export Wallet
Exports a Wallet
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_EXPORT_WALLET" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (ExportWalletIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_EXPORT_WALLET",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Signers allow you to create digitial signatures. Signatures are used to validate the authenticity and integrity of a digital message. Turnkey makes it easy to produce signatures by allowing you to sign with an address. If Turnkey doesn't yet support an address format you need, you can generate and sign with the public key instead by using the address format ADDRESS_FORMAT_COMPRESSED
.
Sign Raw Payload
Sign a raw payload
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (SignRawPayloadIntentV2) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Sign Transaction
Sign a transaction
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (SignTransactionIntentV2) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_SIGN_TRANSACTION_V2",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Private Keys are cryptographic public / private key pairs that can be used for cryptocurrency needs or more generalized encryption. Turnkey securely holds all private key materials for you, but only you can access them.
The Private Key ID or any derived address can be used to create digital signatures. See Signers for more information
Get Private Key
Get details about a Private Key
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
privateKeyId required | string Unique identifier for a given Private Key. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "privateKeyId": "string"
}
Response samples
- 200
{- "privateKey": {
- "privateKeyId": "string",
- "publicKey": "string",
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
], - "privateKeyTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "exported": true
}
}
List Private Keys
List all Private Keys within an Organization
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
Responses
Request samples
- Payload
{- "organizationId": "string"
}
Response samples
- 200
{- "privateKeys": [
- {
- "privateKeyId": "string",
- "publicKey": "string",
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
], - "privateKeyTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "exported": true
}
]
}
Create Private Keys
Create new Private Keys
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreatePrivateKeysIntentV2) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Export Private Key
Exports a Private Key
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (ExportPrivateKeyIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Private Key Tags allow you to easily group and permission Private Keys through Policies.
List Private Key Tags
List all Private Key Tags within an Organization
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
Responses
Request samples
- Payload
{- "organizationId": "string"
}
Response samples
- 200
{- "privateKeyTags": [
- {
- "tagId": "string",
- "tagName": "string",
- "tagType": "TAG_TYPE_USER",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
]
}
Create Private Key Tag
Create a private key tag and add it to private keys.
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreatePrivateKeyTagIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Update Private Key Tag
Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (UpdatePrivateKeyTagIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Users are responsible for any action taken within an Organization. They can have ApiKey or Auuthenticator credentials, allowing you to onboard teammates to the Organization, or create API-only Users to run as part of your infrastructure.
Get User
Get details about a User
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
userId required | string Unique identifier for a given User. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "userId": "string"
}
Response samples
- 200
{- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
}
List Users
List all Users within an Organization
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
Responses
Request samples
- Payload
{- "organizationId": "string"
}
Response samples
- 200
{- "users": [
- {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
]
}
Create Users
Create Users in an existing Organization
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_USERS_V2" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateUsersIntentV2) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_USERS_V2",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userTags": [
- "string"
]
}
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Update User
Update a User in an existing Organization
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_UPDATE_USER" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (UpdateUserIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_UPDATE_USER",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
List User Tags
List all User Tags within an Organization
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
Responses
Request samples
- Payload
{- "organizationId": "string"
}
Response samples
- 200
{- "userTags": [
- {
- "tagId": "string",
- "tagName": "string",
- "tagType": "TAG_TYPE_USER",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
]
}
Create User Tag
Create a user tag and add it to users.
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_USER_TAG" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateUserTagIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_USER_TAG",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Update User Tag
Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_UPDATE_USER_TAG" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (UpdateUserTagIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_UPDATE_USER_TAG",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Init Email Recovery
Initializes a new email recovery
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (InitUserEmailRecoveryIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "email": "string",
- "targetPublicKey": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Recover a user
Completes the process of recovering a user by adding an authenticator
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_RECOVER_USER" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (RecoverUserIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_RECOVER_USER",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Authenticators are WebAuthN hardware devices, such as a Macbook TouchID or Yubikey, that can be used to authenticate requests.
Get Authenticator
Get details about an authenticator
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
authenticatorId required | string Unique identifier for a given Authenticator. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "authenticatorId": "string"
}
Response samples
- 200
{- "authenticator": {
- "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"
}
}
}
Get Authenticators
Get details about authenticators for a user
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
userId required | string Unique identifier for a given User. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "userId": "string"
}
Response samples
- 200
{- "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"
}
}
]
}
Create Authenticators
Create Authenticators to authenticate requests to Turnkey
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateAuthenticatorsIntentV2) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Delete Authenticators
Remove authenticators from a User
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (DeleteAuthenticatorsIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_AUTHENTICATORS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
API Keys are used to authenticate requests
See our CLI for instructions on generating API Keys
Create API Keys
Add api keys to an existing User
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_API_KEYS" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (CreateApiKeysIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Delete API Keys
Remove api keys from a User
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_DELETE_API_KEYS" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (DeleteApiKeysIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_API_KEYS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Who am I?
Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users.
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. If the request is being made by a WebAuthN user and their Sub-Organization ID is unknown, this can be the Parent Organization ID; using the Sub-Organization ID when possible is preferred due to performance reasons. |
Responses
Request samples
- Payload
{- "organizationId": "string"
}
Response samples
- 200
{- "organizationId": "string",
- "organizationName": "string",
- "userId": "string",
- "username": "string"
}
Activities encapsulate all the possible actions that can be taken with Turnkey. Some examples include adding a new user, creating a private key, and signing a transaction.
Activities that modify your Organization are processed asynchronously. To confirm processing is complete and retrieve the Activity results, these activities must be polled until that status has been updated to a finalized state: COMPLETED
when the activity is successful or FAILED
when the activity has failed
Get Activity
Get details about an Activity
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
activityId required | string Unique identifier for a given Activity object. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "activityId": "string"
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
List Activities
List all Activities within an Organization
Authorizations:
Request Body schema: application/json
organizationId required | string Unique identifier for a given Organization. |
filterByStatus | Array of strings (ActivityStatus) Items Enum: "ACTIVITY_STATUS_CREATED" "ACTIVITY_STATUS_PENDING" "ACTIVITY_STATUS_COMPLETED" "ACTIVITY_STATUS_FAILED" "ACTIVITY_STATUS_CONSENSUS_NEEDED" "ACTIVITY_STATUS_REJECTED" Array of Activity Statuses filtering which Activities will be listed in the response. |
object (Pagination) | |
filterByType | Array of strings (ActivityType) Items Enum: "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" Array of Activity Types filtering which Activities will be listed in the response. |
Responses
Request samples
- Payload
{- "organizationId": "string",
- "filterByStatus": [
- "ACTIVITY_STATUS_CREATED"
], - "paginationOptions": {
- "limit": "string",
- "before": "string",
- "after": "string"
}, - "filterByType": [
- "ACTIVITY_TYPE_CREATE_API_KEYS"
]
}
Response samples
- 200
{- "activities": [
- {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": null
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": null,
- "type": null,
- "rawId": null,
- "authenticatorAttachment": null,
- "response": null,
- "clientExtensionResults": null
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": null,
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": null,
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": null,
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": null,
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
]
}
Policies can enforce consensus requirements for Activities. For example, adding a new user requires two admins to approve the request.
Activities that have been proposed, but don't yet meet the Consesnsus requirements will have the status: REQUIRES_CONSENSUS
. Activities in this state can be approved or rejected using the unique fingerprint generated when an Activity is created.
Approve Activity
Approve an Activity
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_APPROVE_ACTIVITY" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (ApproveActivityIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_APPROVE_ACTIVITY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "fingerprint": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}
Reject Activity
Reject an Activity
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_REJECT_ACTIVITY" |
timestampMs required | string Timestamp (in milliseconds) of the request, used to verify liveness of user requests. |
organizationId required | string Unique identifier for a given Organization. |
required | object (RejectActivityIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_REJECT_ACTIVITY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "fingerprint": "string"
}
}
Response samples
- 200
{- "activity": {
- "id": "string",
- "organizationId": "string",
- "status": "ACTIVITY_STATUS_CREATED",
- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "intent": {
- "createOrganizationIntent": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}, - "rootUserId": "string"
}, - "createAuthenticatorsIntent": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
], - "userId": "string"
}, - "createUsersIntent": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": null,
- "attestationObject": null,
- "transports": [ ],
- "authenticatorAttachment": null
}, - "clientExtensionResults": {
- "appid": null,
- "appidExclude": null,
- "credProps": null
}
}, - "challenge": "string"
}
], - "userTags": [
- "string"
]
}
]
}, - "createPrivateKeysIntent": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "signRawPayloadIntent": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "createInvitationsIntent": {
- "invitations": [
- {
- "receiverUserName": "string",
- "receiverUserEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "senderUserId": "string"
}
]
}, - "acceptInvitationIntent": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "userId": "string",
- "attestation": {
- "id": "string",
- "type": "public-key",
- "rawId": "string",
- "authenticatorAttachment": "cross-platform",
- "response": {
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
], - "authenticatorAttachment": "cross-platform"
}, - "clientExtensionResults": {
- "appid": true,
- "appidExclude": true,
- "credProps": {
- "rk": true
}
}
}, - "challenge": "string"
}
}, - "createPolicyIntent": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "target": "string"
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "disablePrivateKeyIntent": {
- "privateKeyId": "string"
}, - "deleteUsersIntent": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsIntent": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationIntent": {
- "invitationId": "string"
}, - "deleteOrganizationIntent": {
- "organizationId": "string"
}, - "deletePolicyIntent": {
- "policyId": "string"
}, - "createUserTagIntent": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsIntent": {
- "userTagIds": [
- "string"
]
}, - "signTransactionIntent": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "createApiKeysIntent": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "userId": "string"
}, - "deleteApiKeysIntent": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}, - "approveActivityIntent": {
- "fingerprint": "string"
}, - "rejectActivityIntent": {
- "fingerprint": "string"
}, - "createPrivateKeyTagIntent": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsIntent": {
- "privateKeyTagIds": [
- "string"
]
}, - "createPolicyIntentV2": {
- "policyName": "string",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "effect": "EFFECT_ALLOW",
- "notes": "string"
}, - "setPaymentMethodIntent": {
- "number": "string",
- "cvv": "string",
- "expiryMonth": "string",
- "expiryYear": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "activateBillingTierIntent": {
- "productId": "string"
}, - "deletePaymentMethodIntent": {
- "paymentMethodId": "string"
}, - "createPolicyIntentV3": {
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "condition": "string",
- "consensus": "string",
- "notes": "string"
}, - "createApiOnlyUsersIntent": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
]
}
]
}, - "updateRootQuorumIntent": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "updateUserTagIntent": {
- "userTagId": "string",
- "newUserTagName": "string",
- "addUserIds": [
- "string"
], - "removeUserIds": [
- "string"
]
}, - "updatePrivateKeyTagIntent": {
- "privateKeyTagId": "string",
- "newPrivateKeyTagName": "string",
- "addPrivateKeyIds": [
- "string"
], - "removePrivateKeyIds": [
- "string"
]
}, - "createAuthenticatorsIntentV2": {
- "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userId": "string"
}, - "acceptInvitationIntentV2": {
- "invitationId": "string",
- "userId": "string",
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createOrganizationIntentV2": {
- "organizationName": "string",
- "rootEmail": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "rootUserId": "string"
}, - "createUsersIntentV2": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
], - "userTags": [
- "string"
]
}
]
}, - "createSubOrganizationIntent": {
- "name": "string",
- "rootAuthenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
}, - "createSubOrganizationIntentV2": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0
}, - "updateAllowedOriginsIntent": {
- "allowedOrigins": [
- "string"
]
}, - "createPrivateKeysIntentV2": {
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "updateUserIntent": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "userTagIds": [
- "string"
]
}, - "updatePolicyIntent": {
- "policyId": "string",
- "policyName": "string",
- "policyEffect": "EFFECT_ALLOW",
- "policyCondition": "string",
- "policyConsensus": "string",
- "policyNotes": "string"
}, - "setPaymentMethodIntentV2": {
- "paymentMethodId": "string",
- "cardHolderEmail": "string",
- "cardHolderName": "string"
}, - "createSubOrganizationIntentV3": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}, - "createWalletIntent": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "createWalletAccountsIntent": {
- "walletId": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "initUserEmailRecoveryIntent": {
- "email": "string",
- "targetPublicKey": "string"
}, - "recoverUserIntent": {
- "authenticator": {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}, - "userId": "string"
}, - "setOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}, - "removeOrganizationFeatureIntent": {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY"
}, - "signRawPayloadIntentV2": {
- "signWith": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}, - "signTransactionIntentV2": {
- "signWith": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}, - "exportPrivateKeyIntent": {
- "privateKeyId": "string",
- "targetPublicKey": "string"
}, - "exportWalletIntent": {
- "walletId": "string",
- "targetPublicKey": "string",
- "language": "MNEMONIC_LANGUAGE_ENGLISH"
}, - "createSubOrganizationIntentV4": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string",
- "expirationSeconds": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- null
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "wallet": {
- "walletName": "string",
- "accounts": [
- {
- "curve": "CURVE_SECP256K1",
- "pathFormat": "PATH_FORMAT_BIP32",
- "path": "string",
- "addressFormat": "ADDRESS_FORMAT_UNCOMPRESSED"
}
]
}, - "disableEmailRecovery": true,
- "disableEmailAuth": true
}, - "emailAuthIntent": {
- "email": "string",
- "targetPublicKey": "string",
- "apiKeyName": "string",
- "expirationSeconds": "string",
- "emailCustomization": {
- "subject": "string",
- "body": "string",
- "styling": "string",
- "urlPrefix": "string"
}
}
}, - "result": {
- "createOrganizationResult": {
- "organizationId": "string"
}, - "createAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "createUsersResult": {
- "userIds": [
- "string"
]
}, - "createPrivateKeysResult": {
- "privateKeyIds": [
- "string"
]
}, - "createInvitationsResult": {
- "invitationIds": [
- "string"
]
}, - "acceptInvitationResult": {
- "invitationId": "string",
- "userId": "string"
}, - "signRawPayloadResult": {
- "r": "string",
- "s": "string",
- "v": "string"
}, - "createPolicyResult": {
- "policyId": "string"
}, - "disablePrivateKeyResult": {
- "privateKeyId": "string"
}, - "deleteUsersResult": {
- "userIds": [
- "string"
]
}, - "deleteAuthenticatorsResult": {
- "authenticatorIds": [
- "string"
]
}, - "deleteInvitationResult": {
- "invitationId": "string"
}, - "deleteOrganizationResult": {
- "organizationId": "string"
}, - "deletePolicyResult": {
- "policyId": "string"
}, - "createUserTagResult": {
- "userTagId": "string",
- "userIds": [
- "string"
]
}, - "deleteUserTagsResult": {
- "userTagIds": [
- "string"
], - "userIds": [
- "string"
]
}, - "signTransactionResult": {
- "signedTransaction": "string"
}, - "deleteApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createApiKeysResult": {
- "apiKeyIds": [
- "string"
]
}, - "createPrivateKeyTagResult": {
- "privateKeyTagId": "string",
- "privateKeyIds": [
- "string"
]
}, - "deletePrivateKeyTagsResult": {
- "privateKeyTagIds": [
- "string"
], - "privateKeyIds": [
- "string"
]
}, - "setPaymentMethodResult": {
- "lastFour": "string",
- "cardHolderName": "string",
- "cardHolderEmail": "string"
}, - "activateBillingTierResult": {
- "productId": "string"
}, - "deletePaymentMethodResult": {
- "paymentMethodId": "string"
}, - "createApiOnlyUsersResult": {
- "userIds": [
- "string"
]
}, - "updateRootQuorumResult": { },
- "updateUserTagResult": {
- "userTagId": "string"
}, - "updatePrivateKeyTagResult": {
- "privateKeyTagId": "string"
}, - "createSubOrganizationResult": {
- "subOrganizationId": "string"
}, - "updateAllowedOriginsResult": { },
- "createPrivateKeysResultV2": {
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "updateUserResult": {
- "userId": "string"
}, - "updatePolicyResult": {
- "policyId": "string"
}, - "createSubOrganizationResultV3": {
- "subOrganizationId": "string",
- "privateKeys": [
- {
- "privateKeyId": "string",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
]
}
]
}, - "createWalletResult": {
- "walletId": "string",
- "addresses": [
- "string"
]
}, - "createWalletAccountsResult": {
- "addresses": [
- "string"
]
}, - "initUserEmailRecoveryResult": {
- "userId": "string"
}, - "recoverUserResult": {
- "authenticatorId": [
- "string"
]
}, - "setOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "removeOrganizationFeatureResult": {
- "features": [
- {
- "name": "FEATURE_NAME_ROOT_USER_EMAIL_RECOVERY",
- "value": "string"
}
]
}, - "exportPrivateKeyResult": {
- "privateKeyId": "string",
- "exportBundle": "string"
}, - "exportWalletResult": {
- "walletId": "string",
- "exportBundle": "string"
}, - "createSubOrganizationResultV4": {
- "subOrganizationId": "string",
- "wallet": {
- "walletId": "string",
- "addresses": [
- "string"
]
}
}, - "emailAuthResult": {
- "userId": "string",
- "apiKeyId": "string"
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "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"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "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"
}
}
}