Retrieve an auditable entity
Read one auditable entity by its ID.
Returns one auditable entity of the authenticated client. The audit_for value of an audit log is the ID of an entity, so use this endpoint to see which legal entity an audit log belongs to.
Request
GET /v2/audits/entities/{id}
idstring (UUID)requiredThe ID of the auditable entity.
GET /v2/audits/entities/{id} in the API referencecurl "https://api.sandbox.squake.earth/v2/audits/entities/d3427e0d-5a3c-40ce-842e-5552e77caa4f" \
--header "Authorization: Bearer $SQUAKE_API_KEY"Response
{
"id": "d3427e0d-5a3c-40ce-842e-5552e77caa4f",
"legal_name": "Example Company GmbH",
"email": "accounting@example.com",
"vat_id": "DE123456789",
"external_id": "ENTITY-001",
"address": {
"line1": "Example Street 1",
"line2": "Building A",
"city": "Berlin",
"postal_code": "10115",
"state": "BE",
"country_alpha2": "DE",
"email": "accounting@example.com"
}
}For the meaning of each field, see List auditable entities.
Errors
| Status | Meaning |
|---|---|
403 | Authentication or authorization failed. Check that audit logging is enabled for your account. |
Related
- List audit logs
- Retrieve a specific Auditable entity in the API reference