Gamma API

Get a form template

GET
/api/projects/{projectId}/form-templates/{templateId}

With its versions, newest first; archived templates included.

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

projectId*string

The project's id.

templateId*string

Response Body

OK.

application/json
  1. response
template*

What a project's forms are filled in from.

versions*array<>

Newest first.

Example Request
curl -X GET 'http://localhost:3000/api/projects/string/form-templates/string'
Example Response
{  "template": {    "id": "string",    "folderId": "string",    "name": "string",    "description": "string",    "kind": "native",    "lastVersion": -9007199254740991,    "reviewEnabled": true,    "approvers": [      {        "kind": "member",        "id": "string"      }    ],    "archived": true,    "formCount": -9007199254740991,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "versions": [    {      "id": "string",      "version": -9007199254740991,      "createdById": "string",      "createdAt": "2019-08-24T14:15:22Z",      "fileName": "string"    }  ]}