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
Get Organization
Get details about 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
- default
{- "organizationData": {
- "organizationId": "string",
- "name": "string",
- "users": [
- {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "userTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
], - "policies": [
- {
- "policyId": "string",
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "notes": "string",
- "consensus": "string",
- "condition": "string"
}
], - "privateKeys": [
- {
- "privateKeyId": "string",
- "publicKey": "string",
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
], - "privateKeyTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}
}
], - "invitations": [
- {
- "invitationId": "string",
- "receiverUserName": "string",
- "receiverEmail": "string",
- "receiverUserTags": [
- "string"
], - "accessType": "ACCESS_TYPE_WEB",
- "status": "INVITATION_STATUS_CREATED",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}, - "senderUserId": "string"
}
], - "tags": [
- {
- "tagId": "string",
- "tagName": "string",
- "tagType": "TAG_TYPE_USER",
- "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
], - "disabledPrivateKeys": [
- {
- "privateKeyId": "string",
- "publicKey": "string",
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
], - "privateKeyTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}
}
], - "rootQuorum": {
- "threshold": 0,
- "userIds": [
- "string"
]
}, - "allowedOrigins": [
- "string"
]
}
}
Create Sub-Organization
Create a new Sub-Organization
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_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 (v1CreateSubOrganizationIntentV3) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "subOrganizationName": "string",
- "rootUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
]
}
], - "rootQuorumThreshold": 0,
- "privateKeys": [
- {
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "privateKeyTags": [
- "string"
], - "addressFormats": [
- "ADDRESS_FORMAT_UNCOMPRESSED"
]
}
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 Allowable Origins
Update the allowable origins for credentials and requests
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" |
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 (v1UpdateAllowedOriginsIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "allowedOrigins": [
- "string"
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1UpdateRootQuorumIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "threshold": 0,
- "userIds": [
- "string"
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1CreateInvitationsIntent) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1DeleteInvitationIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_INVITATION",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "invitationId": "string"
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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
- default
{- "policy": {
- "policyId": "string",
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "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
- default
{- "policies": [
- {
- "policyId": "string",
- "policyName": "string",
- "effect": "EFFECT_ALLOW",
- "selectors": [
- {
- "subject": "string",
- "operator": "OPERATOR_EQUAL",
- "targets": [
- "string"
]
}
], - "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 (v1CreatePolicyIntentV3) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1DeletePolicyIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_POLICY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "policyId": "string"
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1UpdatePolicyIntent) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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. Think of Private Keys as your own programmable wallet. Turnkey securely holds all Private Key materials for you, but only you can access them.
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
- default
{- "privateKey": {
- "privateKeyId": "string",
- "publicKey": "string",
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
], - "privateKeyTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}
}
}
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
- default
{- "privateKeys": [
- {
- "privateKeyId": "string",
- "publicKey": "string",
- "privateKeyName": "string",
- "curve": "CURVE_SECP256K1",
- "addresses": [
- {
- "format": "ADDRESS_FORMAT_UNCOMPRESSED",
- "address": "string"
}
], - "privateKeyTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}
}
]
}
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 (v1CreatePrivateKeysIntentV2) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 Raw Payload
Sign a raw payload with a Private Key
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" |
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 (v1SignRawPayloadIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "privateKeyId": "string",
- "payload": "string",
- "encoding": "PAYLOAD_ENCODING_HEXADECIMAL",
- "hashFunction": "HASH_FUNCTION_NO_OP"
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 with a Private Key
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_SIGN_TRANSACTION" |
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 (v1SignTransactionIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_SIGN_TRANSACTION",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "privateKeyId": "string",
- "unsignedTransaction": "string",
- "type": "TRANSACTION_TYPE_ETHEREUM"
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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.
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 (v1CreatePrivateKeyTagIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "privateKeyTagName": "string",
- "privateKeyIds": [
- "string"
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1UpdatePrivateKeyTagIntent) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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
- default
{- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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
- default
{- "users": [
- {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "userTags": [
- "string"
], - "createdAt": {
- "seconds": "string",
- "nanos": "string"
}, - "updatedAt": {
- "seconds": "string",
- "nanos": "string"
}
}
]
}
Create API-only Users
Create API-only Users in an existing Organization
Authorizations:
Request Body schema: application/json
type required | string Value: "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" |
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 (v1CreateApiOnlyUsersIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_API_ONLY_USERS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "apiOnlyUsers": [
- {
- "userName": "string",
- "userEmail": "string",
- "userTags": [
- "string"
], - "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string"
}
]
}
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 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 (v1CreateUsersIntentV2) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_USERS_V2",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "users": [
- {
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string"
}
], - "authenticators": [
- {
- "authenticatorName": "string",
- "challenge": "string",
- "attestation": {
- "credentialId": "string",
- "clientDataJson": "string",
- "attestationObject": "string",
- "transports": [
- "AUTHENTICATOR_TRANSPORT_BLE"
]
}
}
], - "userTags": [
- "string"
]
}
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1UpdateUserIntent) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 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 (v1CreateUserTagIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_USER_TAG",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userTagName": "string",
- "userIds": [
- "string"
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1UpdateUserTagIntent) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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
- default
{- "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
- default
{- "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 (v1CreateAuthenticatorsIntentV2) |
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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1DeleteAuthenticatorsIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_AUTHENTICATORS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userId": "string",
- "authenticatorIds": [
- "string"
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1CreateApiKeysIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_CREATE_API_KEYS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "string"
}
], - "userId": "string"
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1DeleteApiKeysIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_DELETE_API_KEYS",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "userId": "string",
- "apiKeyIds": [
- "string"
]
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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
- default
{- "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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1ActivityStatus) 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 (v1Pagination) | |
filterByType | Array of strings (v1ActivityType) 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" 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
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1ApproveActivityIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_APPROVE_ACTIVITY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "fingerprint": "string"
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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 (v1RejectActivityIntent) |
Responses
Request samples
- Payload
{- "type": "ACTIVITY_TYPE_REJECT_ACTIVITY",
- "timestampMs": "string",
- "organizationId": "string",
- "parameters": {
- "fingerprint": "string"
}
}
Response samples
- 200
- default
{- "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"
}
], - "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"
}
], - "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"
}
]
}
]
}, - "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",
- "accessType": "ACCESS_TYPE_WEB",
- "apiKeys": [
- {
- "apiKeyName": "string",
- "publicKey": "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"
}
], - "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"
}
], - "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"
]
}
]
}
}, - "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"
}
]
}
]
}
}, - "votes": [
- {
- "id": "string",
- "userId": "string",
- "user": {
- "userId": "string",
- "userName": "string",
- "userEmail": "string",
- "accessType": "ACCESS_TYPE_WEB",
- "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"
}
}
], - "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"
}
}
}