Skip to content

Build with AI

Give Claude Code, Cursor, Copilot, ChatGPT or your own agent the docs as Markdown, the OpenAPI document, the MCP server, a prompt and a rules file.

Point your coding assistant or agent at the right sources and it can write a correct Qelka integration on the first try. This page lists what we publish for machines, then gives you a prompt and a rules file to paste.

Give your assistant the docs

Source URL What it holds
llms.txt https://qelka.com/llms.txt An index for language models: every docs page with a one-line summary and a link to its Markdown, every endpoint with its cost, the free tools and the articles
llms-full.txt https://qelka.com/llms-full.txt Every docs page and article in one plain-text file, for assistants that take a single document
Markdown pages Any docs URL followed by .md The page as Markdown, for example https://qelka.com/docs/quickstart.md, or https://qelka.com/docs.md for this documentation's overview
OpenAPI 3.1 https://api.qelka.com/v1/openapi.json Every endpoint, request field, response field and error, as a machine-readable schema

The two score pages, Email quality score and IP risk score, have no Markdown version.

Every docs page also has three buttons:

  • Copy page copies the page as Markdown, ready to paste into a chat or a prompt.
  • Open in Claude and Open in ChatGPT start a conversation about the page in that assistant.

From a terminal, or from an agent that can fetch URLs:

Terminal
curl https://qelka.com/docs/api-reference/email.md

Give your assistant the page for the endpoint you are integrating plus Errors. Those two pages hold everything it needs to handle every outcome. Every Markdown page stands alone, so one page is enough context for one endpoint.

Generate a client from the OpenAPI document

https://api.qelka.com/v1/openapi.json is public: no key is needed to read it, and it can be fetched from a browser. It is generated from the same schemas the API uses to validate requests, so it matches what the API accepts and returns.

Import it into an API client to explore the endpoints, or into a code generator that reads OpenAPI 3.1 to build a typed client in your language. Coding assistants also read it well: give them the URL and ask for a typed function per endpoint you use.

Connect an assistant through MCP

The Qelka MCP server at https://mcp.qelka.com/mcp gives Claude, Cursor and other Model Context Protocol clients the checks as tools, such as verify_email, validate_phone and check_vat. It uses the Streamable HTTP transport and your API key as a bearer token, and each tool call costs the same credits as the matching API call. Use it to let an assistant check the data you are working on: a CSV of leads, phone numbers in test fixtures, a list of suppliers' VAT numbers.

Give it a test key first: the tools then return the simulated answers of Test mode and never spend credits. MCP server has the setup for each client.

Prompt: add email verification to a signup flow

Paste this into Claude Code, Cursor, Copilot or ChatGPT from the root of your project. It names the pages to read and the rules that matter, so the assistant does not guess:

Prompt
Add email verification to our signup flow using the Qelka API.

Read these pages first:
- https://qelka.com/docs/api-reference/email.md
- https://qelka.com/docs/errors.md
- https://qelka.com/docs/test-mode.md

Requirements:
1. Call the API from our server code only. Read the key from the QELKA_API_KEY environment variable. Never send the key to the browser or a mobile app, never log it, never commit it, and add QELKA_API_KEY to our example env file with an empty value.
2. Development and CI use a test key (sk_test_...). Only production uses a live key (sk_live_...).
3. Send POST https://api.qelka.com/v1/email with the header "Authorization: Bearer" followed by the key, the header "Content-Type: application/json", and a JSON body with the address in the "email" field.
4. Set a client timeout of 15 seconds on the call. The default full mode waits for the recipient's mail server.
5. Handle every status:
   - deliverable: accept.
   - undeliverable: reject with a clear message. If did_you_mean is not null, offer it as a suggestion ("Did you mean ...?") and let the user choose.
   - risky: accept. When reason is "disposable", flag the account for review instead of blocking, unless I tell you to block.
   - unknown: accept. Never block a signup because the status is unknown.
6. Fail open. If the call times out, cannot connect, or returns any error status, let the signup through and mark the address as not verified so a background job can check it later. Never block a signup because the API failed.
7. On HTTP 429, wait the number of seconds in the Retry-After header before retrying. Retry 500 and 502 with exponential backoff, at most 3 attempts. Never retry 400, 401, 402, 403, 404 or 422: fix the cause instead.
8. Branch on error.type, never on error.message. Log the X-Request-Id response header and the result "id" with any failure. Never log the full email address.
9. Store status, reason and the result id with the user record, so the same address is not checked twice. Cached results cost the same credits as fresh ones.
10. Write tests that run against the API with the test key: undeliverable@example.com, disposable@example.com, unknown@example.com and greylisted@example.com always return the same status and reason, listed on the test mode page.

Change the address, the endpoint or the policy for risky to fit your product. The same structure works for the other endpoints: replace the reference page and the status list.

Rules file for your repository

Coding agents read a rules file from the repository on every task: AGENTS.md, CLAUDE.md, a file in .cursor/rules or .github/copilot-instructions.md, depending on the tool. Add this section to it so every change that touches the API follows the same rules:

AGENTS.md
## Qelka API

- Docs index: https://qelka.com/llms.txt. Add .md to any docs URL to read it as Markdown.
- Call https://api.qelka.com/v1 from server code only. The key comes from the QELKA_API_KEY environment variable. Never ship it to a browser or a mobile app, never log it, never commit it.
- Use sk_test_ keys in development and CI. Only production uses an sk_live_ key, and it checks key.mode from GET /account at startup.
- Every call has a client timeout. When the API fails or times out, fail open: let the user continue and check again later.
- Never block a user because an email status is unknown.
- Branch on error.type, never on error.message. Retry rate_limited after Retry-After seconds, internal_error and upstream_unavailable with backoff. Never retry other error types.
- Log the X-Request-Id header and the result id with every failure. Never log full email addresses, phone numbers or keys.
- Store results with the record instead of checking the same value twice: cached results cost the same credits.

Let an agent call the API directly

An autonomous agent can use the API like any client. A few facts make it safer:

  • Start with a test key. Answers are simulated and fixed, and no credit is spent. Test mode lists the inputs that give each outcome.
  • Check the budget first. GET https://api.qelka.com/v1/account is free and returns the balance in credits.balance. Every response also carries the balance in X-Credits-Remaining.
  • Know the costs. Each check costs a fixed number of credits, listed in Credits. Errors are never billed.
  • Use batch for many values. POST /batch takes up to 100 checks of any kind and counts as one request against the rate limits.
  • Read error.type. Each of the nine error types says whether a retry can help.