> For the complete documentation index, see [llms.txt](https://documentation.akowe.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.akowe.app/readme.md).

# Developer Platform

Welcome to your team’s developer platform

<h2 align="center">🚀 Quick Start Guide – Akowe Template SDK</h2>

<p align="center"><a href="https://issuance.akowe.app/auth/create-account" class="button primary">Sign up</a> <a href="https://issuance.akowe.app/auth/login" class="button secondary">Log in</a></p>

***

The **Akowe Template SDK** lets you build and edit certificate templates with a drag-and-drop editor inside your own app.

***

### 1. Include the SDK

Add the SDK script to your page:

```html
<script src="https://issuance.akowe.app/sdk"></script>
```

***

### 2. Initialize the SDK

```html
<script>
  const certApp = new CertificateSDK({
    onCreateCompleted: (data) => {
      console.log("Template created:", data);
      // send to Template Create API
    },
    onEditCompleted: (data) => {
      console.log("Template edited:", data);
      // send to Template Edit API
    },
    onError: (err) => {
      console.error("SDK Error:", err);
    },
    onClose: () => {
      console.log("User closed the modal");
    },
  });
</script>
```

***

### 3. Create a Template

```html
<button onclick="certApp.createTemplate()">Create Template</button>
```

👉 Opens the drag-and-drop editor.\
👉 Returns template JSON via `onCreateCompleted`.

***

### 4. Edit a Template

```html
<script>
  const existingTemplate = {
    id: "demo-id-123",
    name: "Demo Template",
    imageUrl: "https://cdn.example.com/demo-bg.jpg",
    fields: [
      { type: "name", text: "Full Name", x: 50, y: 40, fontSize: 16 },
      { type: "date", text: "Issue Date", x: 50, y: 60, fontSize: 16 }
    ],
    dimensions: { width: 1920, height: 1080 }
  };
</script>

<button onclick="certApp.editTemplate(existingTemplate)">Edit Template</button>
```

👉 Loads an existing template.\
👉 Returns updated JSON via `onEditCompleted`.

***

### 5. Close the Modal

```html
<button onclick="certApp.close()">Close Editor</button>
```

***

### 6. Send Data to API

Once you get the template JSON from the SDK, send it to the API:

```bash
# Create Template
curl --location 'https://issuance.akowe.app/api/template' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "name": "My Template",
  "imageUrl": "https://cdn.example.com/bg.jpg",
  "fields": [ ... ]
}'
```

***

✅ That’s it! In just a few lines, you can **create, edit, and manage templates** inside your own app.

***

<a href="https://issuance.akowe.app/auth/create-account" class="button primary" data-icon="rocket-launch">Get Your API Key</a> <a href="https://documentation.akowe.app/api-reference" class="button secondary" data-icon="terminal">API reference</a>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.akowe.app/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
