Skip to content

Compilation and integrations

10 endpoints. Every path below is served by trilocore-contractide-backend behind the gateway at https://api.trilocore.ai.

GET /api/v1/ide/analyses/{uuid}

Get Analysis

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend
curl -X GET https://api.trilocore.ai/api/v1/ide/analyses/{uuid} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

GET /api/v1/ide/analyses/{uuid}/findings

Get Analysis Findings

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend
curl -X GET https://api.trilocore.ai/api/v1/ide/analyses/{uuid}/findings \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

POST /api/v1/ide/compile

Start Compile

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend

Request body

Field Type Required Constraints
ref one of no —
settings object no —
toolchain string no —
workspace_id string yes —
curl -X POST https://api.trilocore.ai/api/v1/ide/compile \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"workspace_id": "…"}'

GET /api/v1/ide/compile/jobs/{id}

Get Job

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend
curl -X GET https://api.trilocore.ai/api/v1/ide/compile/jobs/{id} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

GET /api/v1/ide/healthz

Healthz

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend
curl -X GET https://api.trilocore.ai/api/v1/ide/healthz \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

▶ Run this example in the sandbox

GET /api/v1/ide/integrations

List Integrations

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend
Pagination paged: page_size ≤ 200 (default 50) + page_token; the body is {data, has_more, next_page_token, page_size}

Query parameters

Parameter Type Required Constraints Description
workspace_id string yes — —
page_size integer no default 50, clamped to 200, minimum 1 Items per page. Default 50; values above 200 are clamped to 200 (never an error). The effective value is echoed as page_size.
page_token string no maxLength 2048 Opaque token from a previous page's next_page_token. Valid for 3 days, only with the same filters and the same caller. Omit it to start from the first page.
curl -X GET https://api.trilocore.ai/api/v1/ide/integrations \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

▶ Run this example in the sandbox

POST /api/v1/ide/integrations

Create Integration

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend

Query parameters

Parameter Type Required Constraints Description
workspace_id string yes — —

Request body

Field Type Required Constraints
account_login one of no —
credential_ref string yes —
expires_at one of no —
installation_id string yes —
provider string yes —
scopes array no —
curl -X POST https://api.trilocore.ai/api/v1/ide/integrations \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"provider": "…", "installation_id": "…", "credential_ref": "…"}'

DELETE /api/v1/ide/integrations/{uuid}

Revoke Integration

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend

Query parameters

Parameter Type Required Constraints Description
workspace_id string yes — —
curl -X DELETE https://api.trilocore.ai/api/v1/ide/integrations/{uuid} \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

GET /api/v1/ide/templates

List Templates

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend
curl -X GET https://api.trilocore.ai/api/v1/ide/templates \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

▶ Run this example in the sandbox

GET /api/v1/ide/toolchains

List Toolchains

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-contractide-backend
curl -X GET https://api.trilocore.ai/api/v1/ide/toolchains \
  -H "Authorization: Bearer $TRILOCORE_API_KEY"

▶ Run this example in the sandbox