Gamma API

Get a form template version's file URL

GET
/api/projects/{projectId}/form-templates/{templateId}/versions/{version}/file

A PDF template version's file, to download; 404 on a native one. 409 when it is in an organization storage that is disconnected.

Who may call it: Anyone on the project whose permission profile allows form-template.read. API keys: yes, given form-template.read for this project.

Authorization

cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

version*string

The version's number: 1, 2, 3 …

projectId*string

The project's id.

templateId*string

Response Body

OK.

application/json
  1. response
url*string

A presigned URL; valid for minutes, not to be stored.

Formaturi
Example Request
curl -X GET 'http://localhost:3000/api/projects/string/form-templates/string/versions/string/file'
Example Response
{  "url": "http://example.com"}