Note: Beagle Security API v1 has been deprecated. We recommend that you upgrade to v2
Start a test
Start a test session for an application that already registered and verified in the Beagle environment. Get your access token and application token from the Beagle web console.
API
POSThttps://api.beaglesecurity.com/v1/test/start
Request headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Request body
| Name | Description |
|---|---|
| access_token | A unique token for accessing the API |
| application_token | A unique token for identifying the application in your account |
Example request
curl --location --request POST \
'https://api.beaglesecurity.com/v1/test/start' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_token": "7i8cesnridfk0ha65ufm03gctsikiici",
"application_token": "1iwg9chvbqb2uxvtxd8c3bf9c5t026xu"
}'
Response
| Name | Description |
|---|---|
| status | Status code for the API call |
| status_url | URL for getting test status |
| result_url | URL for getting test result |
| result_token | A unique key for identifying result session |
| message | Success/failure message for the API call |
Example response
{
"status": "Success",
"status_url": "https://api.beaglesecurity.com/v1/test/status",
"result_url": "https://api.beaglesecurity.com/v1/test/result",
"result_token": "rnlp8czjz8jssy4kl2f83l011bmexxyv",
"message": "Test has started successfully."
}
{
"status": "Failed",
"message": "Invalid application. Start test failed."
}