Create a resource
curl --request POST \
--url https://aquila.attaxr.com/api/leads \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"userId": "<string>",
"assetKey": "<string>",
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', assetKey: '<string>', title: '<string>'})
};
fetch('https://aquila.attaxr.com/api/leads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/leads"
payload = {
"userId": "<string>",
"assetKey": "<string>",
"title": "<string>"
}
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"userId": "<string>",
"assetKey": "<string>",
"metadata": {},
"type": "other",
"title": "<string>",
"description": "",
"priority": "medium",
"status": "new",
"createdAt": "<unknown>",
"updatedAt": "<unknown>",
"_id": "<string>",
"assetType": "<string>",
"assetValue": "<string>",
"scanId": "<string>",
"category": "<string>",
"interestScore": 0.5,
"confidence": 0.5,
"recommendedAction": "<string>",
"analysis": "<string>",
"technologies": [
{}
],
"notableObservations": [
"<string>"
],
"relationships": [
"<string>"
],
"whyInteresting": "<string>",
"potentialVulnerabilities": [
{}
],
"recommendedTools": [
{}
],
"architectureMermaid": "<string>",
"chainingOpportunities": [
{}
],
"endpoints": [
{}
],
"insights": [
{}
],
"cves": [
{
"id": "<string>",
"technology": "<string>",
"version": "<string>",
"description": "<string>",
"cvssScore": 123,
"cvssSeverity": "CRITICAL",
"publishedAt": "<string>",
"references": [
"<string>"
]
}
],
"classifiedAt": "<unknown>",
"lastAnalysisAt": "<unknown>",
"reconVersion": 4503599627370495,
"response": "<string>",
"changedResponse": "<string>",
"lastFetchedAt": "<unknown>",
"jsRecon": {},
"jsReconAnalyzedAt": "<unknown>",
"lastNotifiedJsBodyHash": "<string>",
"lastNotifiedJsAt": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Leads
Create a resource
Creates a row owned by the calling user; userId is injected server-side and never taken from the body.
POST
/
api
/
leads
Create a resource
curl --request POST \
--url https://aquila.attaxr.com/api/leads \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"userId": "<string>",
"assetKey": "<string>",
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', assetKey: '<string>', title: '<string>'})
};
fetch('https://aquila.attaxr.com/api/leads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/leads"
payload = {
"userId": "<string>",
"assetKey": "<string>",
"title": "<string>"
}
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"userId": "<string>",
"assetKey": "<string>",
"metadata": {},
"type": "other",
"title": "<string>",
"description": "",
"priority": "medium",
"status": "new",
"createdAt": "<unknown>",
"updatedAt": "<unknown>",
"_id": "<string>",
"assetType": "<string>",
"assetValue": "<string>",
"scanId": "<string>",
"category": "<string>",
"interestScore": 0.5,
"confidence": 0.5,
"recommendedAction": "<string>",
"analysis": "<string>",
"technologies": [
{}
],
"notableObservations": [
"<string>"
],
"relationships": [
"<string>"
],
"whyInteresting": "<string>",
"potentialVulnerabilities": [
{}
],
"recommendedTools": [
{}
],
"architectureMermaid": "<string>",
"chainingOpportunities": [
{}
],
"endpoints": [
{}
],
"insights": [
{}
],
"cves": [
{
"id": "<string>",
"technology": "<string>",
"version": "<string>",
"description": "<string>",
"cvssScore": 123,
"cvssSeverity": "CRITICAL",
"publishedAt": "<string>",
"references": [
"<string>"
]
}
],
"classifiedAt": "<unknown>",
"lastAnalysisAt": "<unknown>",
"reconVersion": 4503599627370495,
"response": "<string>",
"changedResponse": "<string>",
"lastFetchedAt": "<unknown>",
"jsRecon": {},
"jsReconAnalyzedAt": "<unknown>",
"lastNotifiedJsBodyHash": "<string>",
"lastNotifiedJsAt": "<unknown>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
apiKeyCookieapiKeyHeaderbearerAuth
Browser session cookie set by Better Auth sign-in.
Body
application/json
Show child attributes
Show child attributes
Required range:
0 <= x <= 1Required range:
0 <= x <= 1Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Required range:
0 <= x <= 9007199254740991Show child attributes
Show child attributes
Available options:
authorization_issue, api_endpoint, auth_workflow, sensitive_functionality, business_logic_concern, other Available options:
low, medium, high, critical Available options:
new, analyzing, investigating, validating, closed 
