---
title: "Developer Docs | Attendir — API, Embed Widget & Machine-Readable Resources"
description: "Attendir developer docs: the MCP server for AI assistants, the embed widget, widget API with OpenAPI spec, llms.txt and markdown for agents."
canonical: "https://attendir.com/docs"
lang: "en"
---

# Developer Docs | Attendir — API, Embed Widget & Machine-Readable Resources

Developers & Agents

# Attendir Developer Documentation

Machine-readable resources, the embeddable share widget, the widget API, and self-serve onboarding — everything a developer or AI agent needs to work with Attendir.

 

## Machine-Readable Resources

Every structured surface Attendir publishes, at a predictable URL:

- [/llms.txt](https://attendir.com/llms.txt) — index of every page with descriptions, built for AI crawlers and agents
- [/llms-full.txt](https://attendir.com/llms-full.txt) — expanded reference with inline pricing tables, FAQs, and an index of every article
- [/docs/llms.txt](https://attendir.com/docs/llms.txt), [/blog/llms.txt](https://attendir.com/blog/llms.txt), [/glossary/llms.txt](https://attendir.com/glossary/llms.txt) — per-area indexes, so an agent working in one section fetches that section instead of the whole site. The developer index also names the MCP endpoint and its OAuth metadata
- [/openapi.json](https://attendir.com/openapi.json) — OpenAPI 3.1 specification for the public widget API
- [/.well-known/api-catalog](https://attendir.com/.well-known/api-catalog) — RFC 9727 API catalog: every API we publish as an RFC 9264 linkset, served as `application/linkset+json` and advertised from every page with a `Link: rel="api-catalog"` header
- [/.well-known/ard.json](https://attendir.com/.well-known/ard.json) — Agentic Resource Discovery manifest: the agent-facing resources listed here, each with sample queries for discovery registries, linked from every page with `<link rel="ard">` and a `Link: rel="ard"` header
- [/.well-known/mcp/server-card.json](https://attendir.com/.well-known/mcp/server-card.json) — MCP server card: the Attendir MCP server, its tools and how to sign in
- [/auth.md](https://attendir.com/auth.md) — authentication reference: OAuth 2.1 for the MCP server, the widget API token, and what Attendir does not issue
- [/sitemap.xml](https://attendir.com/sitemap.xml) — every indexable URL with last-modified dates
- [/robots.txt](https://attendir.com/robots.txt) — crawler policy (all major AI crawlers are welcome on public pages)
- [/blog/rss.xml](https://attendir.com/blog/rss.xml) — RSS feed of new articles
- [/.well-known/security.txt](https://attendir.com/.well-known/security.txt) — security contact (RFC 9116)
 
 

## Markdown Content Negotiation

Every public marketing and content page on attendir.com serves a `text/markdown` variant through standard HTTP content negotiation. Request any URL with an Accept header that prefers markdown and you get clean markdown instead of HTML — q-values are honored, both variants carry `Vary: Accept`, and unsupported types get a 406:

 ```bash
curl -H "Accept: text/markdown" https://attendir.com/pricing
```

 

If sending headers is inconvenient, append `.md` to any page URL instead — [/pricing.md](https://attendir.com/pricing.md) returns the same markdown, and the homepage is at [/index.md](https://attendir.com/index.md). Every HTML page advertises its markdown URL twice: as `<link rel="alternate" type="text/markdown">` in the head, and as an RFC 8288 `Link:` response header, so a HEAD request is enough to find it.

You may not need to ask at all. When a request's Accept header expresses no preference between the two variants — a bare `*/*`, or no Accept header — the User-Agent breaks the tie, and agents that read pages as text for a language model (GPTBot, ChatGPT-User, ClaudeBot, Claude-User, Perplexity-User, CCBot and peers) receive the markdown variant automatically. It is the same page with the same facts, just the cleaner serialization; those responses declare `Vary: Accept, User-Agent`. An explicit Accept header always wins, so `Accept: text/html` gets you HTML from any client. Search-index crawlers are deliberately left on HTML, because the markdown variant carries no JSON-LD. Every markdown response also names its own `.md` URL in a `Content-Location` header, so a client that never asked for a variant still learns the stable address of the document it received.

Each markdown variant opens with a YAML frontmatter block carrying its `title`, `description`, `canonical` URL and the BCP 47 `lang` of the document. Pages published in more than one language also list their translations under `alternates` as language tag → absolute URL, mirroring the page's `hreflang` cluster; a page that exists in one language only carries no `alternates` key, so the block never points at a translation that does not exist. The response repeats the language on the wire as `Content-Language`. Attendir's marketing site publishes in English at root URLs and German under `/de/`, so a detached German document still states that it is German and where its English edition lives.

Structured content keeps its structure. Comparison and pricing tables are emitted as GitHub-flavored Markdown tables, so a row's values stay attached to their column; FAQ entries become a bold question followed by its answer as a separate block. Prices appear once, in the currency the page displays — the markdown variant carries the same single edition a reader sees, never both run together. Headings arrive as ATX headings (`## Section`) at the level the page itself uses, each opening its own line, so the outline you chunk on is the page's outline — a numbered section title such as `3. Acceptable Use` stays a heading rather than re-reading as a list item.

Every link in a markdown variant is absolute, so the document stays navigable once it is detached from this origin — cached, chunked, or pasted into a context window. Blog posts and glossary terms are answered from their original Markdown sources. Nonexistent paths return a real HTTP 404 with a short markdown body linking back to this page, the sitemap, and llms.txt, so agents can recover instead of dead-ending.

 

## Embeddable Share Widget

The Attendir widget renders a campaign's LinkedIn sharing flow on your own site — event page, registration confirmation, or sponsor page. It is a single script tag plus a container element; the script auto-discovers every `[data-campaign]` element on the page:

 ```html
<div data-campaign="YOUR_CAMPAIGN_SHARE_LINK"></div>
<script src="https://attendir.com/widget/v1/attendir-widget.js" async></script>
```

 

Optional attributes: `data-theme` (light/dark), `data-channels` (comma-separated: linkedin, x, whatsapp, email, copy\_link), `data-cta` (custom call-to-action text), `data-email` / `data-name` (pre-fill the attendee). A JavaScript API is also exposed as `window.AttendirWidget` with `render()`, `destroy()`, and `destroyAll()`. The embed snippet with your campaign's share link is in the **Embed Widget** section of the campaign page.

 

## Widget API

The widget is built on a small public HTTP API under `/api/widget/{share_link}/`, documented in the [OpenAPI 3.1 spec](https://attendir.com/openapi.json). The campaign's unguessable share-link UUID acts as a capability token — there are no separate API keys. All endpoints are stateless and CORS-enabled; all except `email-html` are rate-limited.

- `GET /api/widget/{share_link}/config` — campaign, event, and widget configuration
- `POST /api/widget/{share_link}/impression` — record a widget impression
- `POST /api/widget/{share_link}/advocate` — create or retrieve an advocate record
- `POST /api/widget/{share_link}/share` — record a share action on a channel
- `POST /api/widget/{share_link}/linkedin/share` — publish a LinkedIn post (short-lived widget token from the OAuth popup)
- `GET /api/widget/{share_link}/email-html` — static HTML block for embedding in emails
 
Every failure under `/api` answers JSON, whatever Accept header you send: a failed validation is a 422 with `message` and per-field `errors`, and everything else is `{"error": "<code>", "message": "…"}` — branch on the stable `error` code (`campaign_not_found`, `too_many_requests`, `not_found` for a path that matches no endpoint), never on the message. Both shapes are typed in the spec as `Error` and `ValidationError`. Rate-limited responses carry the IETF `RateLimit-Policy` and `RateLimit` fields (for example `"widget-config";q=120;w=60` and `"widget-config";r=119`) next to the legacy `X-RateLimit-*` pair, and a 429 adds `Retry-After`.

One scoping note: the widget's *LinkedIn* share flow validates the embedding page's origin against the campaign's allowed-domains list (secure by default), so on your own domain it works once your origin is registered for the campaign — email <info@attendir.com> to have it added. The other channels (X, WhatsApp, email, copy link) and everything else the widget does work on any site out of the box.

 

## MCP Server

Attendir runs a remote MCP server at `https://attendir.com/mcp` (Streamable HTTP) so an AI assistant can set up a LinkedIn share campaign for a B2B event: create the event from its page, design or bring the share card, show it for approval, create the campaign and hand back the share link. It signs in with OAuth 2.1 on the account holder's behalf; see [/auth](https://attendir.com/auth#mcp-oauth) for the flow, [the MCP server page](https://attendir.com/integrations/mcp) for which assistants connect, and [Connect Claude to Attendir](https://attendir.com/integrations/claude) for the steps in Claude. In Claude, the quickest way is [Attendir's listing in Claude's connector directory](https://claude.ai/directory/attendir).

 ```bash
# Claude Code: add the server, then run /mcp to sign in
claude mcp add --transport http attendir https://attendir.com/mcp
```

 

Tools, as the server offers them (also in the [server card](https://attendir.com/.well-known/mcp/server-card.json)):

- `list_events` — List events
- `list_campaigns` — List campaigns
- `create_event` — Create an event
- `update_event` — Update an event
- `get_card_brief` — Get the card design brief
- `design_share_card` — Design a share card
- `generate_share_creative` — Generate a share card from a template
- `import_share_creative` — Import a finished share image
- `get_upload_link` — Get an upload link
- `create_campaign` — Create a campaign
- `update_campaign` — Update a campaign
- `get_campaign_links` — Get campaign links
 
What it won't do: Attendir never posts to LinkedIn through the server (each attendee shares by clicking Share on their own page), it returns share counts but never who shared, and nothing in it deletes anything, sends invites, runs the raffle or touches billing; those stay in the web app. Calls are limited to 60 a minute per person, and every answer, including a refusal, is JSON.

 

## Authentication & Permissions

Attendir has two programmable surfaces: the [MCP server](https://attendir.com/docs#mcp), which takes OAuth 2.1 tokens an assistant gets with the account holder's consent and covers campaign setup only, and the widget API above, authorized per campaign by its share-link capability token. There is no general-purpose account API. Inside the product, integrations authenticate with each provider's own mechanism: authorization-code OAuth 2.0 for Eventbrite, OAuth 2.0 client credentials for Bizzabo and Cvent, API keys for Luma, and LinkedIn OAuth for attendees.

Need programmatic access to your own events, campaigns, or analytics? Email <info@attendir.com> — real use cases move it up the queue.

The full reference — including an explicit list of what Attendir does *not* issue, so you never have to guess — is at [/auth](https://attendir.com/auth) (markdown at [/auth.md](https://attendir.com/auth.md)).

 

## Self-Serve Onboarding

Attendir is fully self-serve — no sales calls, no demos, no "contact us" gate:

- 1. [Create an account](https://attendir.com/register) with Google sign-in or email — takes under a minute
- 2. Every account starts with a **7-day free trial** — no credit card required
- 3. Plans: Lite at $490/month and Unlimited at $1,190/month, billed monthly or yearly — see [pricing](https://attendir.com/pricing)
- 4. Connect Eventbrite, Luma, Cvent, or Bizzabo — or create events manually, or ask Claude to set it up through the [MCP server](https://attendir.com/docs#mcp) — and launch a campaign in under 5 minutes
 
 

 

 

 

  

## Let your attendees do your event marketing

No credit card required. Set up your LinkedIn sharing cards campaign in minutes.

 [ Start free 7-day trial ](https://attendir.com/register)
