Note: Beagle Security API v1 has been deprecated. We recommend that you upgrade to v2
Complete domain verification
Used to verify signature and complete the domain verification process.
API
POSThttps://api.beaglesecurity.com/rest/v2/applications/signature/verify
Required scope: signature_verify
Request headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
Request body
| Name | Type | Description | Required |
|---|---|---|---|
| application_token | string | A unique token for identifying the application in your account | |
| signatureType | string | Type of domain verification method | |
| pluginType | string | Used to specify plugin type if you are using plugin type domain verification |
Example request
curl --location --request POST \
'https://api.beaglesecurity.com/rest/v2/applications/signature/verify' \
--header 'Authorization: Bearer dktir7e0ebkt4nj3ttzu5c0h2gf9hl1d' \
--header 'Content-Type: application/json' \
--data-raw '{
"applicationToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"signatureType": "FILE",
"pluginType": "WORDPRESS"
}'
// This token will be generated from Beagle security settings -> Access token
BeagleSecurityClient client = BeagleSecurityClientBuilder.instance()
.withAPIToken("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
.build();
// Get domain verification signature
String applicationToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
SignatureType signatureType = SignatureType.FILE;
PluginType pluginType = PluginType.WORDPRESS;
Boolean verifyStatus = client.verifySignature(applicationToken, signatureType, pluginType);
Response
| Name | Type | Description |
|---|---|---|
| code | string |
Status code for the API call.
Values are:
SUCCESSAPI call is success
SUCCESSSignature verification success
PLAN_NOT_SUPPORTEDYour plan does not support this feature.
INVALID_SESSIONInvalid session
INVALID_PLUGIN_TYPEInvalid plugin type provided
FAILEDFailed to complete domain verification.
NOT_AUTHORIZEDUser authentication failed.
|
| message | string | Success/failure message for the API call |
Example response
{
"code": "SUCCESS",
"message": "Verification success."
}
{
"code": "FAILED",
"message": "Verification failed."
}
{
"code": "NOT_AUTHORIZED",
"message": "Not authorized"
}