> For the complete documentation index, see [llms.txt](https://docs.mylumen.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mylumen.dev/mylumen-api/get-token-info.md).

# Get Token Info

<mark style="color:green;">`POST`</mark> `/public/get-token-info/`

{% hint style="info" %}
Running this command doesn't affect the uses of the API Key
{% endhint %}

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |
| API\_Token   | `<API_Token>`      |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "data": {
    "Created_By": "string", // DiscordID of the creator
    "Plan": "string", // Returns Free/Pro key status
    "Remaining_Uses": integer, // Returns the amount of uses left today
  },
  "error": false
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid Request"
}
```

{% endtab %}
{% endtabs %}

**Example Usage**

{% tabs %}
{% tab title="JavaScript" %}

```javascript
fetch('https://api.mylumen.dev/public/get-token-info/', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    API_Token: 'YOUR_API_TOKEN'
  }
})
```

{% endtab %}

{% tab title="Python" %}

```python
requests.post("https://api.mylumen.dev/public/get-token-info/",
    headers={
      "Content-Type": "application/json",
      "API_Token": 'YOUR_API_TOKEN'
    }
)
```

{% endtab %}
{% endtabs %}


---

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

```
GET https://docs.mylumen.dev/mylumen-api/get-token-info.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.
