Note: Beagle Security API v1 has been deprecated. We recommend that you upgrade to v2
Get an application using application token
Used to get details of an application using an application token in your Beagle Security account.
API
GEThttps://api.beaglesecurity.com/rest/v2/applications?application_token={application_token}
Required scope: read_project
Request headers
Name Value
Authorization Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Request parameter
Name Type Description Required
application_token string A unique key for identifying the project
Example request
curl --location --request GET \
'https://api.beaglesecurity.com/rest/v2/applications?application_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
// This token will be generated from Beagle security settings -> Access token
BeagleSecurityClient client = BeagleSecurityClientBuilder.instance()
.withAPIToken("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
.build();

// Get application
String applicationToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
Application application = client.getApplication(applicationToken);
Response
Name Type Description
code string Status code for the API call.
Values are:
SUCCESSAPI call is success
PLAN_NOT_SUPPORTEDYour plan does not support this feature.
PROJECT_ALREADY_EXISTSProject already exists in your account.
INVALID_SESSIONInvalid session
FAILEDFailed to create project.
NOT_AUTHORIZEDUser authentication failed.
message string Success/failure message for the API call
application object Application object which contains details of an application
Example response
{
    "code": "SUCCESS",
    "message": "Success",
    "application": {
    "name": "Test",
    "url": "http://196.168.0.7:80",
    "applicationToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "applicationType": "WEB",
    "signatureStatus": "Verified",
    "hostingType": "internal"
}
}
{
    "code": "INVALID_APPLICATION_TOKEN",
    "message": "Given token is invalid"
}
{
    "code": "NOT_AUTHORIZED",
    "message": "Not authorized"
}