Skip to navigation

Fetch a script

Fetches the named script release, optionally at a specific revision. The SDK verifies script signatures. Fetching a script does not execute it. Distributed scripts are readable by authorized clients and must not contain server secrets.

Authentication

AuthorizationBearer
Opaque v3 session token returned by login, bound to its identity and installation.

Headers

X-AuthlyX-NoncestringRequiredformat: "^[a-f0-9]{32,128}$"
Fresh random hexadecimal nonce. Do not reuse.
X-AuthlyX-TimestampstringRequired

Server-aligned Unix time in milliseconds.

X-AuthlyX-SignaturestringRequired

Base64 Ed25519 installation signature over the exact request-proof payload.

Request

This endpoint expects an object.
namestringRequired
Published script name.
revisionintegerOptional>=1
Optional positive revision number. Omit to request the current published revision.

Response

Successful
successboolean
codestring
messagestring
datamap from strings to any or null
requestIdstringformat: "uuid"
verificationobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error
415
Unsupported Media Type Error
429
Too Many Requests Error
503
Service Unavailable Error