PLCs.ai API

Interpret PLC code from your own tools.

A stable, versioned HTTP API over the same engine that powers PLCs.ai. Send a prompt about an Allen-Bradley or Siemens project; get a cited, plain-language answer back.

What you can do

EndpointPurpose
POST /projects/{id}/interpretPrompt → cited interpretation (sync JSON or SSE stream).
POST /projects/{id}/conversationsOpen a stateful troubleshooting thread.
POST /conversations/{cid}/messagesAppend a turn to a thread.
POST /projects/{id}/analysesStart an async analysis job.
GET /analyses/{analysisId}Poll an analysis job's status and results.
POST /projectsIngest an L5X / Siemens export.
POST /embed-tokensMint a read-only token for the embeddable iframe.

At a glance

Base URLhttps://app.plcs.ai/api/v1
AuthAuthorization: Bearer plck_live_… (the org is resolved from the key)
WritesRequire an Idempotency-Key header
ErrorsOne envelope with userMessage, suggestedAction, isRetryable
Every responseCarries a unique request-id header
SDKsPython (PyPI plcsai) & C# (NuGet)