# Get started with developer API

You can build your own apps and products using Drafter AI’s API.

It enables you to execute Drafter AI’s workflows within your app in addition to other features you have.

To do that, follow the next steps:

## 1. Get your API Key

To get your API key, proceed to <mark style="background-color:blue;">**"Settings"**</mark> > <mark style="background-color:blue;">**"Integrations"**</mark>:

<figure><img src="/files/fpLlOZ7zsLXAwOplcBhT" alt=""><figcaption><p>Getting API key</p></figcaption></figure>

**Generate API Key:**

<figure><img src="/files/VC4ugIACEMMAaTriGMsI" alt=""><figcaption><p>Generating API Key</p></figcaption></figure>

{% hint style="warning" %}
You can generate and copy your API key **only once.**

If you forget or lose it, to use it again you'll need to re-generate it.

It's done to comply with the current security policies and protect your instance
{% endhint %}

## Check the examples of API calls

Every workflow has an API call, that leads to it, to use as a reference.

To access it, while in the workflow’s output view, click the <mark style="background-color:blue;">**“Generate API call”**</mark> button at the top right:

<figure><img src="/files/QQw47TwxKoWE4Q82EiJg" alt=""><figcaption><p>Getting API call for specific workflow</p></figcaption></figure>

## Get the SDK: NodeJS

{% embed url="<https://www.npmjs.com/package/@phonal-technologies/drafterai-js>" %}
Getting started with ModeJS SDK
{% endembed %}

## Follow the API docs

{% embed url="<https://phonal-technologies.github.io/drafter-js/>" %}
Getting started with API
{% endembed %}


---

# Agent Instructions: 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:

```
GET https://docs.drafter.ai/scale/get-started-with-developer-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
