Skip to content
GET/api/v1/compliance/licences/{id}

Get a licence with its audit trail

Returns the licence and its append-only lifecycle events, oldest first — who moved it into which state and when. Readable by any org MEMBER including viewers: seeing what the organisation was told and decided is a read-only reviewer's job, while authoring those decisions is admin-gated. `trailAvailable` distinguishes 'no history' from 'the trail could not be read'.

Authentication

Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/settings/api-keys.

Parameters

id in pathrequired
string
orgId in queryrequired
string

Response

200 example

{
  "licence": {
    "id": "00000000-0000-0000-0000-000000000000",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "kind": "licence",
    "name": "string",
    "jurisdiction": "<'EU', ISO-3166 alpha-2, or a subdivision>",
    "authority": "string",
    "frameworkId": "string",
    "reference": "string",
    "status": "not_started",
    "ownerUserId": "00000000-0000-0000-0000-000000000000",
    "effectiveFrom": "2026-01-01",
    "expiresAt": "2026-01-01",
    "renewalLeadDays": 0,
    "notes": "string",
    "standing": "in_force",
    "daysUntilExpiry": 0
  },
  "events": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "event_type": "created",
      "from_status": "string",
      "to_status": "string",
      "actor_user_id": "00000000-0000-0000-0000-000000000000",
      "detail": "string",
      "occurred_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "trailAvailable": false
}

All status codes

200The licence and its trail.
400orgId or id missing
401Unauthenticated
403Not a member of the organisation
404No such licence in this organisation
409Conflict — CONFLICT.
429Too Many Requests — the per-key or per-organization rate limit was exceeded. Honour the Retry-After header.
500Internal Server Error — DB_ERROR.
503Schema behind code

Code samples

cURL

# {id} is shown with an EXAMPLE value — replace it with real values.
curl -X GET \
  https://evalguard.ai/api/v1/compliance/licences/00000000-0000-0000-0000-000000000000 \
  -H "Authorization: Bearer $EVALGUARD_API_KEY"

TypeScript

// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:
// {id} is shown with an EXAMPLE value — replace it with real values.

const res = await fetch("https://evalguard.ai/api/v1/compliance/licences/00000000-0000-0000-0000-000000000000", {
  method: "GET",
  headers: { Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}` },
});
console.log(res.status, await res.json());

Python

# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:
# {id} is shown with an EXAMPLE value — replace it with real values.

import os
import requests

headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}

response = requests.request("GET", "https://evalguard.ai/api/v1/compliance/licences/00000000-0000-0000-0000-000000000000", headers=headers)
print(response.status_code, response.json())

Go

package main

import (
	"context"
	"fmt"
	"net/http"
	"os"
)

// {id} is shown with an EXAMPLE value — replace it with real values.
func main() {
	req, _ := http.NewRequestWithContext(context.Background(), "GET", "https://evalguard.ai/api/v1/compliance/licences/00000000-0000-0000-0000-000000000000", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
	resp, err := http.DefaultClient.Do(req)
	if err != nil { panic(err) }
	defer resp.Body.Close()
	fmt.Println(resp.Status)
}

Errors

400401403404409429500503

Other Compliance endpoints