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)required

The ID of the auditable entity.

See every field of GET /v2/audits/entities/{id} in the API reference
curl "https://api.sandbox.squake.earth/v2/audits/entities/d3427e0d-5a3c-40ce-842e-5552e77caa4f" \
  --header "Authorization: Bearer $SQUAKE_API_KEY"

Response

200 OKapplication/json
{
  "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

StatusMeaning
403Authentication or authorization failed. Check that audit logging is enabled for your account.

On this page

GET/v2/audits/entities/{id}

Run this request against the sandbox with your test key.

Open in API reference