# Developer Platform

<h2 align="center">DevPayr Documentation</h2>

<p align="center">Your payment-agnostic licensing and enforcement platform for developers, designers, agencies, and startups. DevPayr helps you <strong>protect your work</strong>, enforce ethical usage, and make sure clients cannot use your software unless they’ve paid for it — no matter what payment method you use.</p>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-puzzle-piece">:puzzle-piece:</i></h4></td><td>No payment gateway required</td><td>Use your preferred payment gateway/method.<br>DevPayr does not process payments. We only <strong>validate</strong>, <strong>license</strong>, and <strong>enforce</strong> access.</td><td><a href="/files/LHIOZGoI6dPF36TuRaxH">/files/LHIOZGoI6dPF36TuRaxH</a></td></tr><tr><td><h4><i class="fa-lock">:lock:</i></h4></td><td>Licensing made simple</td><td>Create licenses, manage activations, restrict domains/devices, and control who can use your software.</td><td><a href="/files/IaUMODRBBSBL8eUaPX09">/files/IaUMODRBBSBL8eUaPX09</a></td></tr><tr><td><h4><i class="fa-bolt">:bolt:</i></h4></td><td>SDKs &#x26; API</td><td>Drop-in SDKs with simple methods for license validation and enforcement. API also available for custom builds.</td><td><a href="/files/ebMoLMpZFyLqpzByuzrk">/files/ebMoLMpZFyLqpzByuzrk</a></td></tr></tbody></table>

{% columns %}
{% column %}

### Get started in 5 minutes

Setting up your first project with DevPayr is fast and straightforward.\
Create a project → generate your API keys → add a license → integrate the SDK.

No complexity. No friction.\
Just **clean APIs** and easy enforcement.

<a href="/spaces/JbKQFu2NYF99Ry6nr5TG" class="button primary" data-icon="rocket-launch">Get started</a> <a href="/spaces/oEmyqCh4zi1fX3U4XZLJ" class="button secondary" data-icon="terminal">API reference</a>
{% endcolumn %}

{% column %}
{% code title="index.js" overflow="wrap" %}

```typescript
import { DevPayr } from '@xultech/devpayr';

DevPayr.bootstrap({
  license: 'YOUR-LICENSE',
  secret: 'your secret key',
  base_url: 'https://api.devpayr.com',
  action: 'boot',
  injectables: true,
  invalidBehavior: 'modal',
  onReady: (res) => console.log('✅', res)
});

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

<figure><img src="/files/QLc3jhhmZEGTMgYdoKuP" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

### Learn more about DevPayr

Browse guides, explore examples, and learn best practices for integrating DevPayr into your client projects or SaaS products.

* How license validation works
* Using callbacks to activate licenses after payment
* Enforcing access with kill-switch patterns
* SDK examples for PHP, PYTHON and JS

<a href="/spaces/kPd5Zz8AbFnHy2V6uRUT" class="button primary" data-icon="book-open">Guides</a> <a href="/spaces/JbKQFu2NYF99Ry6nr5TG" class="button secondary" data-icon="book">Documentation</a>
{% endcolumn %}
{% endcolumns %}

<h2 align="center">Join our community</h2>

<p align="center">We’re building a community of developers, designers, and creators who value <strong>who do not want their software pirated.</strong></p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord community</strong></td><td>Ask questions, share your integration, and learn from others.</td><td><a href="https://www.gitbook.com/" class="button secondary">Join Discord</a></td><td></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Submit examples, SDK improvements, and open-source contributions.</td><td><a href="https://github.com/Xultech-LTD/devpayr" class="button secondary">Submit a PR</a></td><td></td></tr></tbody></table>


---

# 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://devpayr.gitbook.io/devpayr-docs/readme.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.
