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

# JavaScript In-line SDK

Akowe Popup provides a simple and convenient payment flow for web. It can be integrated in two easy steps, making it the easiest way to start using Akowe on your website.

The sample HTML and JavaScript below is all you need to get started.

{% tabs %}
{% tab title="HTML + JavaScript" %}
{% code lineNumbers="true" %}

```html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="https://issuance.akowe.app/sdk/v1.js"></script>
</head>
<body>
    <button onclick="AkoweCreateTemplate('test@test.com');">Open Template</button>
    <button onclick="AkoweIssueCertificates('test@test.com');">Issue Loaded Certificates</button>
</body>
</html>
```

{% endcode %}
{% endtab %}
{% endtabs %}

That is all that is needed to get Akowe running on your website.

The script tag in the header references Akowe's JavaScript in-line SDK.

## Create Template

To create a new template on Akowe that can be used in future to issue certificates, call the function **`AkoweCreateTemplate`** and pass the email attached to your account as argument as seen in line 7 above. This will popup Akowe's template creation tool right on your website. You can follow the prompt, upload your certificate's image and set all paremeters.

{% hint style="info" %}
**Template creation full view**

To get a full overview of how template creation works visually and all you can do, please visit the [dashboard](https://issuance.akowe.app/) and click `Create New Certificate`.
{% endhint %}

## Issue Certificates

To issue certificates visually from your website and watch the progress in real time, call the function **AkoweIssueCertificates** and pass the email attached to your account as argument as seen in line 8 above.

{% hint style="warning" %}
**Before issuing certificates**

Please note that you must call the API endpoint&#x20;

*<https://developer.akowe.app/api/Customer/issuecertificate>*

before you can issue certificates via the popup.

Alternatively, you can use the dashboard to populate the certificates you wish to send, then they will also be available on the popup plugin.
{% endhint %}


---

# 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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.akowe.app/javascript-in-line-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
