Skip to content

GET /v1/organizations/{org_id}/projects/{id}/urls

A project’s monitored URLs: reachability status, TLS certificate expiry and technologies detected during the last passive scan.

GET /api/v1/organizations/{org_id}/projects/{project_id}/urls
Authorization: Bearer twa_your_key_here
ParameterTypeDescription
org_idUUIDOrganization identifier
project_idUUIDProject identifier
[
{
"id": "018e7777-0000-7000-8000-000000000030",
"url": "https://www.example.com",
"label": "Marketing site",
"is_enabled": true,
"last_status": "ok",
"last_http_status": 200,
"cert_expires_at": "2025-01-15T00:00:00Z",
"cert_issuer": "Let's Encrypt",
"last_scanned_at": "2024-07-01T06:00:00Z",
"created_at": "2024-03-15T10:22:00Z"
}
]
FieldTypeDescription
idstring (UUID)Monitored URL identifier
urlstringMonitored URL
labelstring | nullLabel
is_enabledbooleanMonitoring active
last_statusstringok, error, timeout, pending
last_http_statusinteger | nullLast returned HTTP status
cert_expires_atstring (ISO 8601) | nullTLS certificate expiry
cert_issuerstring | nullCertificate issuer
last_scanned_atstring (ISO 8601) | nullLast scan date
created_atstring (ISO 8601)Date added
GET /api/v1/organizations/{org_id}/projects/{project_id}/urls/{url_id}
Authorization: Bearer twa_your_key_here

Adds the technologies field (technologies detected at the last scan):

{
"id": "018e7777-0000-7000-8000-000000000030",
"url": "https://www.example.com",
"technologies": [
{ "name": "Nginx", "version": "1.18.0", "categories": ["Web servers"], "confidence": 100 }
]
}
CodeDetailCause
404Projet introuvableProject not found or not in this organization
403Accès refusé à ce projetYou are not a member of the project
404URL introuvableurl_id not found on this project

Certificates expiring within 30 days

Fenêtre de terminal
ORG_ID="018e5678-abcd-7000-8000-000000000001"
PROJECT_ID="018e1234-abcd-7000-8000-000000000010"
curl -s \
-H "Authorization: Bearer twa_your_key_here" \
"https://app.techwatchalert.com/api/v1/organizations/${ORG_ID}/projects/${PROJECT_ID}/urls" \
| jq --arg limit "$(date -u -d '+30 days' +%Y-%m-%dT%H:%M:%SZ)" \
'.[] | select(.cert_expires_at != null and .cert_expires_at < $limit) | {url, cert_expires_at}'