---
name: inklura-social
description: Schedule, publish and analyse social media posts on Embann (embann.fr) for the user's connected channels (LinkedIn, Bluesky, Mastodon, Telegram, Discord, Slack, WordPress and more). Use when the user asks to draft, schedule, cross-post, import media for, or review the results of social media posts.
---

# Embann

Embann is a social media scheduler hosted in France. Each workspace has
connected channels (one per social account). You can create drafts, scheduled or
immediate posts, attach media, and read analytics.

Keep a human in the loop: prefer drafts (`type: "draft"`) unless the user clearly asks
to schedule or publish. Write posts in the user's language (usually French).

## Access

Two ways in. Use the first one that is available.

1. **MCP tools** (if an `inklura-social` MCP server is connected): call
   `integrationList` first, then `integrationSchema` for the channel's rules, then
   `integrationSchedulePostTool`. Other tools: `postsListTool`, `uploadFromUrlTool`,
   `mediaListTool`, `integrationAnalyticsTool`, `postAnalyticsTool`, `groupList`,
   `integrationConnectTool`, `previewLinkTool` (client review link for a group).
2. **HTTP API** with the key in `INKLURA_SOCIAL_API_KEY`
   (created by the user in Embann, « API et MCP »). Base URL:
   `https://embann.fr/api/public/v1`. Header: `Authorization: $INKLURA_SOCIAL_API_KEY`.
   Never print the key.

The API follows the Postiz public API, so the Postiz CLI also works with
`POSTIZ_API_URL=https://embann.fr/api/public/v1` and `POSTIZ_API_KEY` set to the key.

## Workflow

1. List channels: `GET /integrations` → `[{ id, name, identifier, picture, disabled, customer }]`.
   `identifier` is the network (linkedin, bluesky, mastodon, telegram...).
2. Read the rules before writing: `GET /integration-settings/{id}` (maximum length,
   accepted media, settings). Adapt each version to its network instead of copying one
   text everywhere.
3. Media: `POST /upload-from-url` with `{ "url": "https://..." }` returns `{ id, path }`;
   attach it as `image: [{ "id": "...", "path": "..." }]`.
4. Create posts: `POST /posts`

```json
{
  "type": "draft",
  "date": "2026-12-08T09:00:00+01:00",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": { "id": "CHANNEL_ID" },
      "value": [ { "content": "Texte du post", "image": [] } ],
      "settings": {}
    }
  ]
}
```

   `type` is `draft`, `schedule` (needs `date`, ISO 8601 with time zone) or `now`.
   Several entries in `value` make a thread (first message, then replies).
   Several entries in `posts` publish to several channels in one call.
5. Check: `GET /posts?startDate=...&endDate=...` (at most 62 days).
   Client review: `POST /posts/group/{groupId}/preview-link` with `{ "allowApproval": true }`
   returns `{ url }` to send to the client (no account needed).
6. Results: `GET /analytics/{channelId}?date=7|30|90` and `GET /analytics/post/{postId}?date=30`.

## Rules

- Never invent figures, prices, dates or quotes in a post.
- Respect each channel's maximum length; for LinkedIn, put the hook in the first two lines.
- Ask before deleting anything (`DELETE /posts/{id}`).
- If a call returns 402, the user's plan does not include that feature: say so plainly.
- Times are in the user's time zone (Europe/Paris unless told otherwise).
