# builtInPrintTemplate query


`builtInPrintTemplate` is a GraphQL query of the Chameleoon MAX API. Send it as `POST https://max-api.chameleoon.sk/api/v1/graphql` with your API key, see [Chameleoon MAX](/chameleoon-max).

Returns the MAX built-in template of a kind in a language. Use it to get the starting point for
a template of your own, or copy it directly with [`copyPrintTemplate`](/chameleoon-max/mutation/copy-print-template).

- Requires the `company.read` permission.
- The built-in template prints when the organisation has no default template of its own for
  the kind and language.
- When the language has no built-in template, the Slovak one is returned.

## Arguments

- `kind`: [`PrintTemplateKind!`](/chameleoon-max/type/print-template-kind) · required
- `language`: `String!` · required

## Returns

[`BuiltInPrintTemplate!`](/chameleoon-max/type/built-in-print-template)

## Example

**Query**

```graphql
query builtInPrintTemplate($kind: PrintTemplateKind!, $language: String!) {
  builtInPrintTemplate(kind: $kind, language: $language) {
    kind
    syntax
    output
    language
    body
  }
}
```

**Variables**

```json
{
  "kind": "SALES_ORDER",
  "language": "example"
}
```

**Response**

```json
{
  "data": {
    "builtInPrintTemplate": {
      "kind": "SALES_ORDER",
      "syntax": "JSON",
      "output": "PDF",
      "language": "example",
      "body": "example"
    }
  }
}
```

Values are illustrative: replace IDs and codes with your own before you send the call.
