---
title: "Get an org template file with download URLs"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an org template file with download URLs

Path: CloudRaker Workspace API › Organization Templates

`GET /organization/templates/{fileId}`

Returns the template file record plus a `urls` object of minted download links (each ~1h), notably `urls.file` (the stored PDF bytes) for the curation canvas. Returns 404 if the file is not parented to the caller’s organization (a space file, or another tenant’s, is hidden). Authorization: org admin (denied → 403).

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `fileId` (`getOrgTemplate.path.fileId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/organization/templates/<fileId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/organization/templates/<fileId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/organization/templates/<fileId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The template record, with minted ~1h download URLs.

#### Example

```json
{
  "id": "a1b2c3d4",
  "fileName": "invoice.pdf",
  "parentType": "space",
  "parentId": "string",
  "mimeType": "application/pdf",
  "size": 0,
  "status": "waiting",
  "processingKind": "doc-simple",
  "processingError": "string",
  "processingProgress": {
    "state": "queued",
    "pagesTotal": -9007199254740991,
    "pagesDone": -9007199254740991
  },
  "parentFileId": "string",
  "artifacts": [
    "string"
  ],
  "indexVectors": true,
  "indexOntology": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "storedAt": "2019-08-24T14:15:22Z",
  "processedAt": "2019-08-24T14:15:22Z",
  "urls": {
    "file": "string",
    "processedJson": "string",
    "processedMd": "string",
    "previewPdf": "string"
  }
}
```

- `id` (`getOrgTemplate.response.200.id`; string, required)
  - example `"a1b2c3d4"`
- `fileName` (`getOrgTemplate.response.200.fileName`; string, required)
  - example `"invoice.pdf"`
- `parentType` (`getOrgTemplate.response.200.parentType`; string, required)
  - example `"space"`
- `parentId` (`getOrgTemplate.response.200.parentId`; string, required)
- `mimeType` (`getOrgTemplate.response.200.mimeType`; string, required)
  - example `"application/pdf"`
- `size` (`getOrgTemplate.response.200.size`; number | null, required) — Size in bytes, null until stored.
- `status` (`getOrgTemplate.response.200.status`; string, required) — Terminal values are `stored` (uploaded, no processing requested), `processed` and `failed`; `waiting` and `processing` mean keep polling.
  - one of `"waiting"`, `"stored"`, `"processing"`, `"processed"`, `"failed"`
- `processingKind` (`getOrgTemplate.response.200.processingKind`; any of, required)
  - any of:
    - `string`: one of `"doc-simple"`, `"doc-ocr"`, `"doc-auto"`, `"audio-transcribe"`, `"audio-transcribe-and-diarize"`
    - `null`
- `createdAt` (`getOrgTemplate.response.200.createdAt`; string, required)
  - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
- `processingError` (`getOrgTemplate.response.200.processingError`; string, optional)
- `processingProgress` (`getOrgTemplate.response.200.processingProgress`; object, optional) — Present while `status` is `processing`. `queued` means that the organization is at its concurrent parse limit and no page of this file is in parse.
  - `state` (`getOrgTemplate.response.200.processingProgress.state`; string, required)
    - one of `"queued"`, `"processing"`
  - `pagesTotal` (`getOrgTemplate.response.200.processingProgress.pagesTotal`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `pagesDone` (`getOrgTemplate.response.200.processingProgress.pagesDone`; integer, required)
    - min -9007199254740991; max 9007199254740991
- `parentFileId` (`getOrgTemplate.response.200.parentFileId`; string, optional) — Source file this one was generated from (e.g. a redacted or signed copy).
- `artifacts` (`getOrgTemplate.response.200.artifacts`; array<string>, optional) — Parsing byproducts present, e.g. `structured`, `transcript`.
- `indexVectors` (`getOrgTemplate.response.200.indexVectors`; boolean, optional)
- `indexOntology` (`getOrgTemplate.response.200.indexOntology`; boolean, optional)
- `storedAt` (`getOrgTemplate.response.200.storedAt`; string, optional)
  - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
- `processedAt` (`getOrgTemplate.response.200.processedAt`; string, optional)
  - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
- `urls` (`getOrgTemplate.response.200.urls`; object, optional) — Minted download links, each valid ~1 hour. Present on single-file reads only — list responses mint none.
  - `file` (`getOrgTemplate.response.200.urls.file`; string, optional) — The stored original.
  - `processedJson` (`getOrgTemplate.response.200.urls.processedJson`; string, optional) — Structured/grounded JSON.
  - `processedMd` (`getOrgTemplate.response.200.urls.processedMd`; string, optional) — Extracted markdown.
  - `previewPdf` (`getOrgTemplate.response.200.urls.previewPdf`; string, optional)


Source: https://docs.cloudraker.com/workspace/api/organization-templates/get-org-template/index.md
