Passo Developers
Api

Get a script with its versions

GET
/scripts/{publicId}

Returns a single script in a workspace you belong to — its title, whether it requires compliance review, its current version id, its deal id and the deliverable it satisfies (deliverable id and public id, null when it names none), plus every version (newest first) with each version's body, state (in_review, changes_requested, approved), who submitted it and when it was superseded. 404 if it doesn't exist or you can't see it.

Authorization

AuthorizationBearer <token>

A Supabase-issued OAuth user access token. On collection endpoints, pair with a Passo-Workspace header to pick a workspace.

In: header

Path Parameters

publicId*string
Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/scripts/string"
{  "id": "string",  "title": "string",  "workspaceId": "string",  "requiresCompliance": true,  "currentVersionId": "string",  "dealId": "string",  "deliverableId": "string",  "deliverablePublicId": "string",  "versions": [    {      "id": "string",      "versionNo": -9007199254740991,      "body": "string",      "state": "in_review",      "submittedByUserId": "string",      "supersededAt": "string",      "createdAt": "string"    }  ]}