Skip to content

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

Every monitoring stack, CVE alert and EOL subscription is attached to a project. Project IDs are obtained by walking the hierarchy from your organizations: see GET /v1/organizations.

GET /api/v1/organizations/{org_id}/projects/{project_id}
Authorization: Bearer twa_your_key_here
ParameterTypeDescription
org_idUUIDOrganization identifier
project_idUUIDProject identifier
{
"id": "018e1234-abcd-7000-8000-000000000010",
"name": "Prod infrastructure",
"description": "Production servers and dependencies",
"org_id": "018e5678-abcd-7000-8000-000000000001",
"is_default": true,
"created_at": "2024-03-15T10:22:00Z"
}
FieldTypeDescription
idstring (UUID)Project identifier — used in every /organizations/{org_id}/projects/{id}/... endpoint
namestringProject name
descriptionstring | nullDescription (null if not set)
org_idstring (UUID) | nullOrganization the project belongs to
is_defaultbooleantrue for the project created automatically at signup
created_atstring (ISO 8601)Creation date
CodeDetailCause
404Projet introuvableproject_id does not exist
403Accès refusé à ce projetProject exists but you are neither owner nor member

Store the default project ID of the personal organization

Fenêtre de terminal
PERSONAL_ORG=$(curl -s \
-H "Authorization: Bearer twa_your_key_here" \
https://app.techwatchalert.com/api/v1/organizations \
| jq -r '.[] | select(.is_personal == true) | .id')
DEFAULT_PROJECT=$(curl -s \
-H "Authorization: Bearer twa_your_key_here" \
"https://app.techwatchalert.com/api/v1/organizations/${PERSONAL_ORG}/projects" \
| jq -r '.[] | select(.is_default == true) | .id')
echo "Default project: $DEFAULT_PROJECT"