---
title: "Get contract template by ID"
method: GET
path: "/api/v1/contract-templates/{templateId}"
tags: ["contract-templates"]
---

# Get contract template by ID

`GET /api/v1/contract-templates/{templateId}`

Get a contract template by its ID.

## Path parameters

- `templateId` string, required

## Headers

- `x-sdk-version` string, required

## Response `200`

Contract template by ID

- GetContractByIdResponseDto
  - `result` ContractTemplateItemDto
    - `id` string
    - `name` string
    - `description` string
    - `longDescription` string
    - `bytecode` string
    - `sourceCode` string
    - `type` string
    - `docs` object

## Other responses

- `401` — Unauthorized – invalid or missing token. **Applicable error codes and client messages** The response body contains one of the following error codes and the corresponding client-facing message. | Code | Client message | |------|----------------| | ERR-008 | You need to sign in to continue. | | ERR-011 | Your session is invalid or expired. Please sign in again. |
- `403` — Forbidden – insufficient permissions. **Applicable error codes and client messages** The response body contains one of the following error codes and the corresponding client-facing message. | Code | Client message | |------|----------------| | ERR-009 | You don't have permission to do that. | | ERR-410 | Error occurred |
- `404` — Resource not found. **Applicable error codes and client messages** The response body contains one of the following error codes and the corresponding client-facing message. | Code | Client message | |------|----------------| | ERR-066 | Contract not found. |
- `500` — Internal server error. **Applicable error codes and client messages** The response body contains one of the following error codes and the corresponding client-facing message. | Code | Client message | |------|----------------| | ERR-019 | Something went wrong on our side. | | ERR-999 | An unexpected error occurred. Please try again. |

---

[API](https://skmtc.net/oumla/apis/oumla-core-server.md) · [All operations](https://skmtc.net/oumla/apis/oumla-core-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oumla/oumla-core-server/revisions/2154835230b5/schema)
