SOAP Service Methods
This is a reference documentation of the methods published by the PowerAuth Server SOAP service. It reflects the SOAP service methods as they are defined in the WSDL files:
The versioning of SOAP methods is described in chapter SOAP Method Compatibility.
The following v3
methods are published using the service:
- System Status
- Application Management
- Activation Management
- Signature Verification
- Offline Signatures
- Token Based Authentication
- Vault Unlocking
- Signature Audit Log
- Activation History
- Integration Management
- Callback URL Management
- End-To-End Encryption
- Activation Versioning
- Activation Recovery
- createRecoveryCode
- confirmRecoveryCode
- lookupRecoveryCodes
- revokeRecoveryCodes
- recoveryCodeActivation
- getRecoveryConfig
- updateRecoveryConfig
The following
v2
methods are published using the service:
- Activation Management
- Token Based Authentication
- Vault Unlocking
- End-To-End Encryption
System status
Methods used for getting the PowerAuth Server system status.
Method ‘getSystemStatus’
Get the server status information.
Request
GetSystemStatusRequest
- no attributes
Response
GetSystemStatusResponse
Type | Name | Description |
---|---|---|
String |
status |
A constant value “OK”. |
String |
applicationName |
A name of the application, the default value is powerauth . The value may be overriden by settingpowerauth.service.applicationName property. |
String |
applicationDisplayName |
A human readable name of the application, default value is “PowerAuth Server”. The value may be overriden by setting powerauth.service.applicationDisplayName property. |
String |
applicationEnvironment |
An identifier of the environment, by default, the value is empty. The value may be overriden by setting powerauth.service.applicationEnvironment property. |
String |
version |
Version of PowerAuth server. |
String |
buildTime |
Timestamp when the powerauth-server.war file was built. |
DateTime |
timestamp |
A current system timestamp. |
Method ‘getErrorCodeList’
Get the list of all error codes that PowerAuth Server can return.
Request
GetErrorCodeListRequest
Type | Name | Description |
---|---|---|
String |
language |
Language code (ISO). |
Response
GetErrorCodeListResponse
Type | Name | Description |
---|---|---|
Error[] |
errors |
A collection of errors. |
GetErrorCodeListResponse.Error
Type | Name | Description |
---|---|---|
String |
code |
A code of the error. |
String |
value |
A localized message for the error code. |
Application management
Methods related to the management of applications and application versions.
Method ‘getApplicationList’
Get list of all applications that are present in this PowerAuth Server instance.
Request
GetApplicationListRequest
- no attributes
Response
GetApplicationListResponse
Type | Name | Description |
---|---|---|
Application[] |
applications |
A collection of application objects |
GetApplicationListRequest.Application
Type | Name | Description |
---|---|---|
Long |
id |
An application ID |
String |
applicationName |
Application name |
Method ‘getApplicationDetail’
Get detail of application with given ID, including the list of versions.
Request
GetApplicationDetailRequest
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
Response
GetApplicationDetailResponse
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
String |
applicationName |
An application name |
String |
masterPublicKey |
Base64 encoded master public key |
Version[] |
versions |
Collection of application versions |
GetApplicationDetailResponse.Version
Type | Name | Description |
---|---|---|
Long |
applicationVersionId |
An identifier of an application version |
String |
applicationVersionName |
An application version name, for example “1.0.3” |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
applicationSecret |
An application secret associated with this version |
Boolean |
supported |
Flag indicating if this application is supported |
Method ‘lookupApplicationByAppKey’
Find application using application key.
Request
LookupApplicationByAppKeyRequest
Type | Name | Description |
---|---|---|
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
Response
LookupApplicationByAppKeyResponse
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
Method ‘createApplication’
Create a new application with given name.
Request
CreateApplicationRequest
Type | Name | Description |
---|---|---|
String |
applicationName |
An application name |
Response
CreateApplicationResponse
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
String |
applicationName |
An application name |
Method ‘createApplicationVersion’
Create a new application version with given name for a specified application.
Request
CreateApplicationVersionRequest
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
String |
applicationVersionName |
An application version name |
Response
CreateApplicationVersionResponse
Type | Name | Description |
---|---|---|
Long |
applicationVersionId |
An identifier of an application version |
String |
applicationVersionName |
An application version name |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
applicationSecret |
An application secret associated with this version |
Boolean |
supported |
Flag indicating if this application is supported |
Method ‘unsupportApplicationVersion’
Mark application version with given ID as “unsupported”. Signatures constructed using application key and application secret associated with this versions will be rejected as invalid.
Request
UnsupportApplicationVersionRequest
Type | Name | Description |
---|---|---|
Long |
applicationVersionId |
An identifier of an application version |
Response
UnsupportApplicationVersionResponse
Type | Name | Description |
---|---|---|
Long |
applicationVersionId |
An identifier of an application version |
Boolean |
supported |
Flag indicating if this application is supported |
Method ‘supportApplicationVersion’
Mark application version with given ID as “supported”. Signatures constructed using application key and application secret associated with this versions will be evaluated the standard way.
Request
SupportApplicationVersionRequest
Type | Name | Description |
---|---|---|
Long |
applicationVersionId |
An identifier of an application version |
Response
SupportApplicationVersionResponse
Type | Name | Description |
---|---|---|
Long |
applicationVersionId |
An identifier of an application version |
Boolean |
supported |
Flag indicating if this application is supported |
Activation management
Methods related to activation management.
Method ‘initActivation’
Create (initialize) a new activation for given user and application. After calling this method, a new activation record is created in CREATED state.
Request
InitActivationRequest
Type | Name | Description |
---|---|---|
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of an application |
DateTime |
timestampActivationExpire |
Timestamp after when the activation cannot be completed anymore |
Long |
maxFailureCount |
How many failures are allowed for this activation |
Response
InitActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
activationCode |
Activation code which uses 4x5 characters in Base32 encoding separated by a “-“ character |
String |
activationSignature |
A signature of the activation data using Master Server Private Key |
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of an application |
Method ‘prepareActivation’
Assure a key exchange between PowerAuth Client and PowerAuth Server and prepare the activation with given ID to be committed. Only activations in CREATED state can be prepared. After successfully calling this method, activation is in OTP_USED state.
Request
PrepareActivationRequest
Type | Name | Description |
---|---|---|
String |
activationCode |
Activation code which uses 4x5 characters in Base32 encoding separated by a “-“ character |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES request should contain following data (as JSON):
activationName
- Visual representation of the device, for example “Johnny’s iPhone” or “Samsung Galaxy S”.devicePublicKey
- Represents a public keyKEY_DEVICE_PUBLIC
(base64-encoded).extras
- Any client side attributes associated with this activation, like a more detailed information about the client, etc.
Response
PrepareActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
userId |
User ID |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES response contains following data (as JSON):
activationId
- Represents a longACTIVATION_ID
that uniquely identifies given activation records.serverPublicKey
- Public keyKEY_SERVER_PUBLIC
of the server (base64-encoded).ctrData
- Initial value for hash-based counter (base64-encoded).activationRecovery
- Information about activation recovery which is sent only in case activation recovery is enabled.recoveryCode
- Recovery code which uses 4x5 characters in Base32 encoding separated by a “-“ character.puk
- Recovery PUK with unique PUK used as secret for the recovery code.
Method ‘createActivation’
Create an activation for given user and application, with provided maximum number of failed attempts and expiration timestamp, including a key exchange between PowerAuth Client and PowerAuth Server. Prepare the activation to be committed later. After successfully calling this method, activation is in OTP_USED state.
Request
CreateActivationRequest
Type | Name | Description |
---|---|---|
String |
userId |
User ID |
DateTime |
timestampActivationExpire |
Timestamp after when the activation cannot be completed anymore |
Long |
maxFailureCount |
How many failures are allowed for this activation |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES request should contain following data (as JSON):
activationName
- Visual representation of the device, for example “Johnny’s iPhone” or “Samsung Galaxy S”.devicePublicKey
- Represents a public keyKEY_DEVICE_PUBLIC
(base64-encoded).extras
- Any client side attributes associated with this activation, like a more detailed information about the client, etc.
Response
CreateActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES response contains following data (as JSON):
activationId
- Represents a longACTIVATION_ID
that uniquely identifies given activation records.serverPublicKey
- Public keyKEY_SERVER_PUBLIC
of the server (base64-encoded).ctrData
- Initial value for hash-based counter (base64-encoded).activationRecovery
- -activationRecovery
- Information about activation recovery which is sent only in case activation recovery is enabled.recoveryCode
- Recovery code which uses 4x5 characters in Base32 encoding separated by a “-“ character.puk
- Recovery PUK with unique PUK used as secret for the recovery code.
Method ‘commitActivation’
Commit activation with given ID. Only non-expired activations in OTP_USED state can be committed. After successful commit, activation is in ACTIVE state.
Request
CommitActivationRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
externalUserId |
User ID of user who committed the activation. Use null value if activation owner caused the change. |
Response
CommitActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
Boolean |
activated |
Flag indicating if the activation was committed |
Method ‘getActivationStatus’
Get status information and all important details for activation with given ID.
Request
GetActivationStatusRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
Response
GetActivationStatusResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
ActivationStatus |
activationStatus |
An activation status |
String |
blockedReason |
Reason why activation was blocked (default: NOT_SPECIFIED) |
String |
activationName |
An activation name |
String |
userId |
An identifier of a user |
String |
extras |
Any custom attributes |
Long |
applicationId |
An identifier fo an application |
DateTime |
timestampCreated |
A timestamp when the activation was created |
DateTime |
timestampLastUsed |
A timestamp when the activation was last used |
DateTime |
timestampLastChange |
A timestamp of last activation status change |
String |
encryptedStatusBlob |
An encrypted blob with status information |
String |
activationCode |
Activation code which uses 4x5 characters in Base32 encoding separated by a “-“ character |
String |
activationSignature |
A signature of the activation data using Master Server Private Key |
String |
devicePublicKeyFingerprint |
Numeric fingerprint of device public key, used during activation for key verification |
Long |
version |
Activation version |
Method ‘removeActivation’
Remove activation with given ID. This operation is irreversible. Activations can be removed in any state. After successfully calling this method, activation is in REMOVED state.
Request
RemoveActivationRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
externalUserId |
User ID of user who removed the activation. Use null value if activation owner caused the change. |
Boolean |
revokeRecoveryCodes |
An optional flag that indicates if recovery codes, that were created in the scope of the removed activation, should be also revoked. |
Response
RemoveActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
Boolean |
removed |
Flag indicating if the activation was removed |
Method ‘getActivationListForUser’
Get the list of all activations for given user and application ID. If no application ID is provided, return list of all activations for given user.
Request
GetActivationListForUserRequest
Type | Name | Description |
---|---|---|
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of an application |
Response
GetActivationListForUserResponse
Type | Name | Description |
---|---|---|
String |
userId |
An identifier of a user |
Activation[] |
activations |
A collection of activations for given user |
GetActivationListForUserResponse.Activation
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
ActivationStatus |
activationStatus |
An activation status |
String |
blockedReason |
Reason why activation was blocked (default: NOT_SPECIFIED) |
String |
activationName |
An activation name |
String |
extras |
Any custom attributes |
DateTime |
timestampCreated |
A timestamp when the activation was created |
DateTime |
timestampLastUsed |
A timestamp when the activation was last used |
DateTime |
timestampLastChange |
A timestamp of last activation status change |
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier fo an application |
String |
applicationName |
An application name |
Long |
version |
Activation version |
Method ‘blockActivation’
Block activation with given ID. Activations can be blocked in ACTIVE state only. After successfully calling this method, activation is in BLOCKED state.
Request
BlockActivationRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
reason |
Reason why activation is being blocked (default: NOT_SPECIFIED) |
String |
externalUserId |
User ID of user who blocked the activation. Use null value if activation owner caused the change. |
Response
BlockActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
ActivationStatus |
activationStatus |
An activation status |
String |
blockedReason |
Reason why activation was blocked (default: NOT_SPECIFIED) |
Method ‘unblockActivation’
Unblock activation with given ID. Activations can be unblocked in BLOCKED state only. After successfully calling this method, activation is in ACTIVE state and failed attempt counter is set to 0.
Request
UnblockActivationRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
externalUserId |
User ID of user who unblocked the activation. Use null value if activation owner caused the change. |
Response
UnblockActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
ActivationStatus |
activationStatus |
An activation status |
Signature verification
Methods related to signature verification.
Method ‘verifySignature’
Verify signature correctness for given activation, application key, data and signature type.
Request
VerifySignatureRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
data |
Base64 encoded data for the signature |
String |
signature |
PowerAuth signature |
SignatureType |
signatureType |
PowerAuth signature type |
Long |
forcedSignatureVersion |
Forced signature version used during activation upgrade |
Response
VerifySignatureResponse
Type | Name | Description |
---|---|---|
Boolean |
signatureValid |
Indicates if the signature was correctly validated or if it was invalid (incorrect) |
ActivationStatus |
activationStatus |
An activation status |
String |
blockedReason |
Reason why activation was blocked (default: NOT_SPECIFIED) |
String |
activationId |
An identifier of an activation |
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of the application |
SignatureType |
signatureType |
Type of the signature that was used for the computation of the signature. |
Integer |
remainingAttempts |
How many attempts are left for authentication using this activation |
Method ‘verifyECDSASignature’
Verify asymmetric ECDSA signature correctness for given activation and data.
Request
VerifyECDSASignatureRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
data |
Base64 encoded data for the signature |
String |
signature |
Base64 encoded ECDSA signature |
Response
VerifyECDSASignatureResponse
Type | Name | Description |
---|---|---|
Boolean |
signatureValid |
Indicates if the ECDSA signature was correctly validated or if it was invalid (incorrect) |
Method ‘createPersonalizedOfflineSignaturePayload’
Create a data payload used as a challenge for personalized off-line signatures.
Request
CreatePersonalizedOfflineSignaturePayloadRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
data |
Data for the signature, for normalized value see the Offline Signatures QR code documentation |
Response
CreatePersonalizedOfflineSignaturePayloadResponse
Type | Name | Description |
---|---|---|
String |
offlineData |
Data for QR code in format: {DATA}\n{NONCE}\n{KEY_SERVER_PRIVATE_INDICATOR}{ECDSA_SIGNATURE} |
String |
nonce |
Random cryptographic nonce, 16B encoded in Base64, same nonce as in offlineData (available separately for easy access) |
Method ‘createNonPersonalizedOfflineSignaturePayload’
Create a data payload used as a challenge for non-personalized off-line signatures.
Request
CreateNonPersonalizedOfflineSignaturePayloadRequest
Type | Name | Description |
---|---|---|
String |
applicationId |
An identifier of an application |
String |
data |
Data for the signature, for normalized value see the Offline Signatures QR code documentation |
Response
CreateNonPersonalizedOfflineSignaturePayloadResponse
Type | Name | Description |
---|---|---|
String |
offlineData |
Data for QR code in format: {DATA}\n{NONCE}\n{KEY_MASTER_SERVER_PRIVATE_INDICATOR}{ECDSA_SIGNATURE} |
String |
nonce |
Random cryptographic nonce, 16B encoded in Base64, same nonce as in offlineData (available separately for easy access) |
Method ‘verifyOfflineSignature’
Verify off-line signature of provided data.
Request
VerifyOfflineSignatureRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
data |
Base64 encoded data for the signature, normalized data for signatures |
String |
signature |
Actual signature value |
boolean |
biometryAllowed |
Whether biometry is allowed in offline mode |
Response
VerifyOfflineSignatureResponse
Type | Name | Description |
---|---|---|
Boolean |
signatureValid |
Indicates if the signature was correctly validated or if it was invalid (incorrect) |
ActivationStatus |
activationStatus |
An activation status |
String |
blockedReason |
Reason why activation was blocked (default: NOT_SPECIFIED) |
String |
activationId |
An identifier of an activation |
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of the application |
SignatureType |
signatureType |
Type of the signature that was used for the computation of the signature. |
Integer |
remainingAttempts |
How many attempts are left for authentication using this activation |
Token Based Authentication
Method ‘createToken’
Create a new token for the simple token-based authentication.
Request
CreateTokenRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation. |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
SignatureType |
signatureType |
Type of the signature (factors) used for token creation. |
ECIES request should contain following data (an empty JSON object):
{}
Response
CreateTokenResponse
Type | Name | Description |
---|---|---|
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES response contains following data (example):
{
"tokenId": "d6561669-34d6-4fee-8913-89477687a5cb",
"tokenSecret": "VqAXEhziiT27lxoqREjtcQ=="
}
Method ‘validateToken’
Validate token digest used for the simple token-based authentication.
Request
ValidateTokenRequest
Type | Name | Description |
---|---|---|
String |
tokenId |
An identifier of the token. |
String |
tokenDigest |
Digest computed during the token based authentication. |
String |
nonce |
Cryptographic nonce. Random 16B, Base64 encoded. |
Long |
timestamp |
Token digest timestamp, Unix timestamp format. |
Response
ValidateTokenResponse
Type | Name | Description |
---|---|---|
Boolean |
tokenValid |
Information about the validation result - if true, token digest was valid. |
String |
activationId |
An identifier of an activation |
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of the application |
SignatureType |
signatureType |
Type of the signature that was used for the computation of the signature. |
Method ‘removeToken’
Remove token with given ID.
Request
RemoveTokenRequest
Type | Name | Description |
---|---|---|
String |
tokenId |
An identifier of the token. |
Response
RemoveTokenResponse
Type | Name | Description |
---|---|---|
Boolean |
removed |
True in case token was removed, false in case token with given ID was already not present. |
Vault unlocking
Methods related to secure vault.
Method ‘vaultUnlock’
Get the encrypted vault unlock key upon successful authentication using PowerAuth Signature.
Request
VaultUnlockRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
signedData |
Base64 encoded data for the signature |
String |
signature |
PowerAuth signature |
SignatureType |
signatureType |
PowerAuth signature type |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES request should contain following data:
{
"reason": "..."
}
You can provide following reasons for a vault unlocking:
ADD_BIOMETRY
- call was used to enable biometric authentication.FETCH_ENCRYPTION_KEY
- call was used to fetch a generic data encryption key.SIGN_WITH_DEVICE_PRIVATE_KEY
- call was used to unlock device private key used for ECDSA signatures.NOT_SPECIFIED
- no reason was specified.
Response
VaultUnlockResponse
Type | Name | Description |
---|---|---|
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
Boolean |
signatureValid |
Indicates if the signature was correctly validated or if it was invalid (incorrect) |
ECIES response contains following data (example):
{
"activationId": "c564e700-7e86-4a87-b6c8-a5a0cc89683f",
"encryptedVaultEncryptionKey": "QNESF9QVUJMSUNfS0VZX3JhbmRvbQ=="
}
Signature audit
Methods related to signature auditing.
Method ‘getSignatureAuditLog’
Get the signature audit log for given user, application and date range. In case no application ID is provided, event log for all applications is returned.
Request
SignatureAuditRequest
Type | Name | Description |
---|---|---|
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of an application |
DateTime |
timestampFrom |
Timestamp from which to fetch the log |
DateTime |
timestampTo |
Timestamp to which to fetch the log |
Response
SignatureAuditResponse
Type | Name | Description |
---|---|---|
Item[] |
items |
Collection of signature audit logs |
SignatureAuditResponse.Item
Type | Name | Description |
---|---|---|
Long |
id |
Record ID |
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of an application |
String |
activationId |
An identifier of an activation |
Long |
activationCounter |
A counter value at the moment of a signature verification |
String |
activationCtrData |
Base64 encoded hash based counter data |
ActivationStatus |
activationStatus |
An activation status at the moment of a signature verification |
KeyValueMap |
additionalInfo |
Key-value map with additional information |
String |
dataBase64 |
A base64 encoded data sent with the signature |
SignatureType |
signatureType |
Requested signature type |
String |
signature |
Submitted value of a signature |
String |
note |
Extra info about the result of the signature verification |
Boolean |
valid |
Flag indicating if the provided signature was valid |
DateTime |
timestampCreated |
Timestamp when the record was created |
Activation history
Get activation status change log.
Method ‘getActivationHistory’
Get the status change log for given activation and date range.
Request
ActivationHistoryRequest
Type | Name | Description |
---|---|---|
String |
activationId |
Activation ID |
DateTime |
timestampFrom |
Timestamp from which to fetch the changes |
DateTime |
timestampTo |
Timestamp to which to fetch the changes |
Response
ActivationHistoryResponse
Type | Name | Description |
---|---|---|
Item[] |
items |
Collection of activation change logs |
ActivationHistoryResponse.Item
Type | Name | Description |
---|---|---|
Long |
id |
Change ID |
String |
activationId |
An identifier of an activation |
ActivationStatus |
activationStatus |
An activation status at the moment of a signature verification |
String |
blockedReason |
Reason why activation was blocked (default: NOT_SPECIFIED) |
String |
externalUserId |
User ID of user who modified the activation. Null value is used if activation owner caused the change. |
DateTime |
timestampCreated |
Timestamp when the record was created |
Integration management
Methods used for managing integration credentials for PowerAuth Server.
Method ‘createIntegration’
Create a new integration with given name, automatically generate credentials for the integration.
Request
CreateIntegrationRequest
Type | Name | Description |
---|---|---|
String |
name |
New integration name. |
Response
CreateIntegrationResponse
Type | Name | Description |
---|---|---|
String |
id |
Integration identifier (UUID4). |
String |
name |
A name of the integration. |
String |
clientToken |
An integration client token (serves as a “username”). |
String |
clientSecret |
An integration client secret (serves as a “password”). |
Method ‘getIntegrationList’
Get the list of all integrations that are configured on the server instance.
Request
GetIntegrationListRequest
- no attributes
Response
GetIntegrationListResponse
Type | Name | Description |
---|---|---|
Item[] |
items |
Collection of integration records. |
GetIntegrationListResponse.Item
Type | Name | Description |
---|---|---|
String |
id |
Integration identifier (UUID4). |
String |
name |
A name of the integration. |
String |
clientToken |
An integration client token (serves as a “username”). |
String |
clientSecret |
An integration client secret (serves as a “password”). |
Method ‘removeIntegration’
Remove integration with given ID.
Request
RemoveIntegrationRequest
Type | Name | Description |
---|---|---|
String |
id |
ID of an integration to be removed. |
Response
RemoveIntegrationResponse
Type | Name | Description |
---|---|---|
String |
id |
ID of an integration to be removed. |
Boolean |
removed |
Flag specifying if an integration was removed or not. |
Method ‘createCallbackUrl’
Creates a callback URL with given parameters.
Request
CreateCallbackUrlRequest
Type | Name | Description |
---|---|---|
Long |
applicationId |
Associated application ID. |
String |
name |
Callback URL name, for visual identification. |
String |
callbackUrl |
Callback URL that should be notified about activation status updates. |
Response
CreateCallbackUrlResponse
Type | Name | Description |
---|---|---|
String |
id |
Callback URL identifier (UUID4). |
Long |
applicationId |
Associated application ID. |
String |
name |
Callback URL name, for visual identification. |
String |
callbackUrl |
Callback URL that should be notified about activation status updates. |
Method ‘getCallbackUrlList’
Get the list of all callbacks for given application.
Request
GetCallbackUrlListRequest
Type | Name | Description |
---|---|---|
Long |
applicationId |
Application ID for which to fetch callback URLs. |
Response
GetCallbackUrlListResponse
Type | Name | Description |
---|---|---|
CallbackUrlList[] |
callbackUrlList |
Callback URL list. |
GetCallbackUrlListResponse.CallbackUrlList
Type | Name | Description |
---|---|---|
String |
id |
Callback URL identifier (UUID4). |
Long |
applicationId |
Associated application ID. |
String |
name |
Callback URL name, for visual identification. |
String |
callbackUrl |
Callback URL that should be notified about activation status updates. |
Method ‘removeCallbackUrl’
Remove callback URL with given ID.
Request
RemoveCallbackUrlRequest
Type | Name | Description |
---|---|---|
String |
id |
ID of an callback URL to be removed. |
Response
RemoveCallbackUrlResponse
Type | Name | Description |
---|---|---|
String |
id |
ID of an callback URL to be removed. |
Boolean |
removed |
Flag specifying if a callback URL was removed or not. |
End-To-End Encryption
Method ‘getEciesDecryptor’
Get ECIES decryptor data for request/response decryption on intermediate server.
Request
GetEciesDecryptorRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation (used only in activation scope, use null value in application scope) |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
Response
GetEciesDecryptorResponse
Type | Name | Description |
---|---|---|
String |
secretKey |
Base64 encoded secret key for ECIES |
String |
sharedInfo2 |
The sharedInfo2 parameter for ECIES |
Activation versioning
Method ‘startUpgrade’
Upgrade activation to the most recent version supported by the server.
Request
StartUpgradeRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation (used only in activation scope, use null value in application scope) |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
Response
StartUpgradeResponse
Type | Name | Description |
---|---|---|
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
Method ‘commitUpgrade’
Commint activation upgrade.
Request
CommitUpgradeRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation (used only in activation scope, use null value in application scope) |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
Response
CommitUpgradeResponse
Type | Name | Description |
---|---|---|
Boolean |
committed |
Flag specifying if activation upgrade was committed |
Activation recovery
Method ‘createRecoveryCode’
Create a recovery code for user.
Request
CreateRecoveryCodeRequest
Type | Name | Description |
---|---|---|
String |
applicationId |
An identifier of an application |
String |
userId |
An identifier of a user |
Long |
pukCount |
Number of PUKs to generate |
Response
CreateRecoveryCodeResponse
Type | Name | Description |
---|---|---|
String |
nonce |
A base64 encoded nonce used when generating recovery code |
String |
userId |
An identifier of a user |
Long |
recoveryCodeId |
Recovery code entity identifier |
String |
recoveryCodeMasked |
Recovery code with partial masking to avoid leaking recovery code |
RecoveryCodeStatus |
status |
Recovery code status |
Puk[] |
puks |
Recovery code PUKs |
CreateRecoveryCodeResponse.Puk
Type | Name | Description |
---|---|---|
Long |
pukIndex |
Index of the PUK, counting starts by 1 |
Long |
pukDerivationIndex |
Derivation index used when generating PUK |
RecoveryPukStatus |
status |
Recovery PUK status |
Method confirmRecoveryCode
Confirm a recovery code recieved using recovery postcard.
Request
ConfirmRecoveryCodeRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
ephemeralPublicKey |
Base64 encoded ephemeral public key for ECIES |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES request should contain following data (as JSON):
recoveryCode
- Recovery code which should be confirmed in this request.
Response
ConfirmRecoveryCodeResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
userId |
An identifier of a user |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES response contains following data (as JSON):
alreadyConfirmed
- Boolean flag which describes whether recovery code was already confirmed before this request.
Method lookupRecoveryCodes
Lookup recovery codes.
Request
LookupRecoveryCodesRequest
Type | Name | Description |
---|---|---|
String |
userId |
An identifier of a user |
String |
activationId |
An UUID4 identifier of an activation |
String |
applicationId |
An identifier of an application |
RecoveryCodeStatus |
recoveryCodeStatus |
Recovery code status |
RecoveryPukStatus |
recoveryPukStatus |
Recovery PUK status |
Response
LookupRecoveryCodesResponse
Type | Name | Description |
---|---|---|
Long |
recoveryCodeId |
Recovery code entity identifiers |
String |
recoveryCodeMasked |
Recovery code with partial masking to avoid leaking recovery code |
String |
userId |
An identifier of a user |
Long |
applicationId |
An identifier of an application |
String |
activationId |
An UUID4 identifier of an activation |
RecoveryCodeStatus |
status |
Recovery code status |
Puk[] |
puks |
Recovery code PUKs |
LookupRecoveryCodesResponse.Puk
Type | Name | Description |
---|---|---|
Long |
pukIndex |
Index of the PUK, counting starts by 1 |
RecoveryPukStatus |
status |
Recovery PUK status |
Method revokeRecoveryCodes
Revoke recovery codes.
Request
RevokeRecoveryCodesRequest
Type | Name | Description |
---|---|---|
Long[] |
recoveryCodeIds |
Recovery code entity identifiers |
Response
RevokeRecoveryCodesResponse
Type | Name | Description |
---|---|---|
Boolean |
revoked |
True if at least one recovery code was revoked |
Method recoveryCodeActivation
Create an activation using recovery code.
Request
RecoveryCodeActivationRequest
Type | Name | Description |
---|---|---|
String |
recoveryCode |
Recovery code |
String |
puk |
Recovery PUK |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
Long |
maxFailureCount |
Maximum number of failures when using the recovery code |
String |
ephemeralPublicKey |
Base64 encoded encrypted data for ECIES |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES request should contain following data (as JSON):
activationName
- Visual representation of the device, for example “Johnny’s iPhone” or “Samsung Galaxy S”.devicePublicKey
- Represents a public keyKEY_DEVICE_PUBLIC
(base64-encoded).extras
- Any client side attributes associated with this activation, like a more detailed information about the client, etc.
Response
RevokeRecoveryCodesResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
userId |
An identifier of a user |
String |
encryptedData |
Base64 encoded encrypted data for ECIES |
String |
mac |
Base64 encoded mac of key and data for ECIES |
ECIES response contains following data (as JSON):
activationId
- Represents a longACTIVATION_ID
that uniquely identifies given activation records.serverPublicKey
- Public keyKEY_SERVER_PUBLIC
of the server (base64-encoded).ctrData
- Initial value for hash-based counter (base64-encoded).activationRecovery
- Information about activation recovery.recoveryCode
- Recovery code which uses 4x5 characters in Base32 encoding separated by a “-“ character.puk
- Recovery PUK with unique PUK used as secret for the recovery code.
In case the PUK is invalid and there are still valid PUKs left to try, the error response contains the currentRecoveryPukIndex
value in the SOAP fault detail. This value contains information about which PUK should the user re-write next.
Method getRecoveryConfig
Get configuration of activation recovery.
Request
GetRecoveryConfigRequest
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
Response
GetRecoveryConfigResponse
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
Boolean |
activationRecoveryEnabled |
Whether activation recovery is enabled |
Boolean |
recoveryPostcardEnabled |
Whether recovery postcard is enabled |
Boolean |
allowMultipleRecoveryCodes |
Whether multiple recovery codes per user are allowed |
String |
postcardPublicKey |
Base64 encoded recovery postcard public key for PowerAuth server |
String |
remotePostcardPublicKey |
Base64 encoded recovery postcard public key for recovery postcard printing center |
Method updateRecoveryConfig
Update configuration of activation recovery.
Request
UpdateRecoveryConfigRequest
Type | Name | Description |
---|---|---|
Long |
applicationId |
An identifier of an application |
Boolean |
activationRecoveryEnabled |
Whether activation recovery is enabled |
Boolean |
recoveryPostcardEnabled |
Whether recovery postcard is enabled |
Boolean |
allowMultipleRecoveryCodes |
Whether multiple recovery codes per user are allowed |
String |
remotePostcardPublicKey |
Base64 encoded recovery postcard public key |
Response
UpdateRecoveryConfigResponse
Type | Name | Description |
---|---|---|
Boolean |
updated |
Whether recovery configuration was updated |
Activation management (v2)
Method ‘prepareActivation’ (v2)
Assure a key exchange between PowerAuth Client and PowerAuth Server and prepare the activation with given ID to be committed. Only activations in CREATED state can be prepared. After successfully calling this method, activation is in OTP_USED state.
Request
PrepareActivationRequest
Type | Name | Description |
---|---|---|
String |
activationIdShort |
A short (5+5 characters from Base32) identifier of an activation |
String |
activationName |
A visual identifier of the activation |
String |
extras |
Any extra parameter object |
String |
activationNonce |
A base64 encoded activation nonce |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedDevicePublicKey |
A base64 encoded encrypted device public key |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
applicationSignature |
An application signature |
Response
PrepareActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
activationNonce |
A base64 encoded activation nonce |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedServerPublicKey |
A base64 encoded encrypted server public key |
String |
encryptedServerPublicKeySignature |
A base64 encoded signature of the activation data using Master Server Private Key |
Method ‘createActivation’ (v2)
Create an activation for given user and application, with provided maximum number of failed attempts and expiration timestamp, including a key exchange between PowerAuth Client and PowerAuth Server. Prepare the activation to be committed later. After successfully calling this method, activation is in OTP_USED state.
Request
CreateActivationRequest
Type | Name | Description |
---|---|---|
String |
userId |
User ID |
Long |
applicationId |
Application ID |
DateTime |
timestampActivationExpire |
Timestamp after when the activation cannot be completed anymore |
Long |
maxFailureCount |
How many failures are allowed for this activation |
String |
identity |
An identity identifier string for this activation |
String |
activationName |
A visual identifier of the activation |
String |
extras |
Any extra parameter object |
String |
activationNonce |
A base64 encoded activation nonce |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedDevicePublicKey |
A base64 encoded encrypted device public key |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
applicationSignature |
An application signature |
Response
CreateActivationResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An UUID4 identifier of an activation |
String |
activationNonce |
A base64 encoded activation nonce |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
String |
encryptedServerPublicKey |
A base64 encoded encrypted server public key |
String |
encryptedServerPublicKeySignature |
A base64 encoded signature of the activation data using Master Server Private Key |
Token Based Authentication (v2)
Method ‘createToken’ (v2)
Create a new token for the simple token-based authentication.
Request
CreateTokenRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation. |
SignatureType |
signatureType |
Type of the signature (factors) used for token creation. |
String |
ephemeralPublicKey |
A base64 encoded ephemeral public key for ECIES |
Response
CreateTokenResponse
Type | Name | Description |
---|---|---|
String |
mac |
Data MAC value, Base64 encoded. |
String |
encryptedData |
Encrypted data, Base64 encoded bytes. |
Vault unlocking (v2)
Method ‘vaultUnlock’ (v2)
Get the encrypted vault unlock key upon successful authentication using PowerAuth Signature.
Request
VaultUnlockRequest
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
data |
Base64 encoded data for the signature |
String |
signature |
PowerAuth signature |
SignatureType |
signatureType |
PowerAuth signature type |
String |
reason |
Reason why vault is being unlocked (default: NOT_SPECIFIED) |
Response
VaultUnlockResponse
Type | Name | Description |
---|---|---|
String |
activationId |
An identifier of an activation |
String |
userId |
An identifier of a user |
ActivationStatus |
activationStatus |
An activation status |
String |
blockedReason |
Reason why activation was blocked (default: NOT_SPECIFIED) |
Integer |
remainingAttempts |
How many attempts are left for authentication using this activation |
Boolean |
signatureValid |
Indicates if the signature was correctly validated or if it was invalid (incorrect) |
String |
encryptedVaultEncryptionKey |
Encrypted key for vault unlocking |
End-To-End Encryption (v2)
Methods used for establishing a context for end-to-end encryption.
Method ‘getNonPersonalizedEncryptionKey’ (v2)
Establishes a context required for performing a non-personalized (application specific) end-to-end encryption.
Request
GetNonPersonalizedEncryptionKeyRequest
Type | Name | Description |
---|---|---|
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
String |
sessionIndex |
Random session index used to generate session based key, in case null is provided, encryptionKeyIndex will be autogenerated in response. |
String |
ephemeralPublicKey |
Ephemeral public key used for deriving a shared secret. |
Response
GetNonPersonalizedEncryptionKeyResponse
Type | Name | Description |
---|---|---|
String |
applicationKey |
A key (identifier) of an application, associated with given application version |
Long |
applicationId |
Application ID associated with provided version |
String |
encryptionKeyIndex |
Session index used to generate session based key. |
String |
encryptionKey |
Derived key used as a base for ad-hoc key derivation. |
String |
ephemeralPublicKey |
Ephemeral public key used for deriving a shared secret. |
Method ‘getPersonalizedEncryptionKey’ (v2)
Establishes a context required for performing a personalized (activation specific) end-to-end encryption.
Request
GetPersonalizedEncryptionKeyRequest
Type | Name | Description |
---|---|---|
String |
activationId |
Activation ID |
String |
sessionIndex |
Random session index used to generate session based key, in case null is provided, encryptionKeyIndex will be autogenerated in response. |
Response
GetPersonalizedEncryptionKeyResponse
Type | Name | Description |
---|---|---|
String |
activationId |
Activation ID |
String |
encryptionKeyIndex |
Session index used to generate session based key. |
String |
encryptionKey |
Derived key used as a base for ad-hoc key derivation. |
Used enums
This chapter lists all enums used by PowerAuth Server SOAP service.
ActivationStatus
- Represents the status of activation, one of the following values:- CREATED
- OTP_USED
- ACTIVE
- BLOCKED
- REMOVED
SignatureType
- Represents the type of the signature, one of the following values:- POSSESSION
- KNOWLEDGE
- BIOMETRY
- POSSESSION_KNOWLEDGE
- POSSESSION_BIOMETRY
- POSSESSION_KNOWLEDGE_BIOMETRY
RecoveryCodeStatus
- Represent status of the recovery code, one of the following values:- CREATED
- ACTIVE
- BLOCKED
- REVOKED
RecoveryPukStatus
- Represents status of the recovery PUK, one of the following values:- VALID
- USED
- INVALID
Used complex types
This chapter lists complex types used by PowerAuth Server SOAP service.
KeyValueMap
- Represents a map for storing key-value entries:- entry - list of entries (0..n)
- key - String-based key
- value - String-based value
- entry - list of entries (0..n)