Please Send It Log in Try for free
FrançaisEnglish

API and MCP

An AI agent (Claude, ChatGPT or another) can use Please Send It for its owner: create a document collection campaign, launch it, track who sent what, send reminders, and retrieve the files received.

A campaign is a request (what you ask for), contributors (who you ask) and a sequence (the reminders). In the API and the MCP server, a campaign is still called a "projet" (routes /api/projets, field projet_id, tools lister_projets, creer_projet…) and contributors are "destinataires" (field destinataires, destinataire_id): these technical names do not change.

A person dictates a request to their phone while the laptop shows a conversation with an agent

Contents

The API key

Create a key in My subscription, "Agent access" section. It starts with pse_, is shown only once, and can be revoked at any time. It acts on your behalf, in the organization that was active when you created it: it only sees the campaigns of that organization that you are allowed to see.

Send it in the Authorization header of every call:

Authorization: Bearer pse_your_key

The MCP server

For Claude, ChatGPT and MCP-compatible assistants: add a remote MCP connector with the address below, then sign in to your account (OAuth 2.1), with no key to copy: see Connect Please Send It to Claude or ChatGPT. A script or a tool without a browser can also send your key in the Authorization: Bearer header.

https://pleasesendit.com/mcp

"Streamable HTTP" transport: each JSON-RPC 2.0 message is sent as a POST, the response comes back as application/json (no SSE stream). Protocol version: 2025-06-18. The tools:

Each tool carries its annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint). Connected through OAuth, an assistant only sees the tools of its rights: read and write for campaigns, contacts:read and contacts:write for My contributors. An API key has every tool.

Try it by hand:

curl https://pleasesendit.com/mcp \
  -H "Authorization: Bearer $PSE_CLE" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"lister_projets","arguments":{}}}'
A code editor in the evening, on a desk lit by a lamp

List campaigns

curl https://pleasesendit.com/api/projets -H "Authorization: Bearer $PSE_CLE"

Response: {"projets": [{"id": 12, "nom": "…", "echeance": "2026-10-31", "statut": "actif", "attendues": 8, "recues": 5, "destinataires": 4, "complets": 2, …}]}. Statuses: brouillon (draft), actif (active), pause (paused).

Create a campaign

The destinataires field lists the contributors, the people you ask for documents. Each document and each contributor carries a cle (key) of your choice; affectations says who sends what (contributor key to the list of document keys). The campaign is created as a draft: nothing is sent before launch.

curl https://pleasesendit.com/api/projets \
  -H "Authorization: Bearer $PSE_CLE" -H "Content-Type: application/json" \
  -d '{
  "nom": "Rental application",
  "echeance": "2026-10-31",
  "frequence": 3, "plafond": 6, "renforcee": true,
  "message": "Please send everything before the viewing.",
  "pieces": [
    {"cle": "rib", "nom": "Bank details", "format": "pdf"},
    {"cle": "dom", "nom": "Proof of address", "format": "pdf", "consigne": "Less than three months old"}
  ],
  "destinataires": [
    {"cle": "c", "prenom": "Camille", "nom_famille": "Martin", "email": "camille.martin@example.com", "canal": "email", "langue": "en"},
    {"cle": "j", "prenom": "Jean", "telephone": "06 12 34 56 78", "canal": "sms", "langue": "fr"}
  ],
  "affectations": {"c": ["rib", "dom"], "j": ["rib"]}
}'

Response: {"ok": true, "id": 12}.

View a campaign

curl https://pleasesendit.com/api/projets/12 -H "Authorization: Bearer $PSE_CLE"

The response details pieces, destinataires (with lien, their personal upload link, langue, the pieces requested and the depots received) and relances. To edit a campaign, send the same body as for creation to POST /api/projets/12, with the id of existing documents and contributors.

Launch the campaign

curl -X POST https://pleasesendit.com/api/projets/12/lancer -H "Authorization: Bearer $PSE_CLE"

Each contributor gets their personal link by email or text message, then automatic reminders go out between 9 am and 7 pm (Paris time), never on Sundays or public holidays, and stop as soon as the contributor has sent everything. Response: {"ok": true, "invites": 2}. Invitations follow the same window: launched outside it, the campaign is active and the response says "invites": 0, "differees": 2, "prochain_envoi": "…". The account must have confirmed its email address.

Remind a contributor

curl https://pleasesendit.com/api/projets/12/relancer \
  -H "Authorization: Bearer $PSE_CLE" -H "Content-Type: application/json" \
  -d '{"destinataire_id": 34}'

At most one manual reminder every ten minutes for the same contributor.

Pause and resume

curl -X POST https://pleasesendit.com/api/projets/12/pause -H "Authorization: Bearer $PSE_CLE"

Toggles between actif and pause; the response gives the new statut. While paused, the sequence stops: links stay open but nobody is reminded.

Add contributors to a campaign

Without sending the whole campaign again: contributors typed in, entries from My contributors (contact_ids) or a whole group (groupe_id). They get the chosen documents (all of them if pieces is missing); if the campaign is launched, they are invited right away, within the sending times.

curl https://pleasesendit.com/api/projets/12/destinataires \
  -H "Authorization: Bearer $PSE_CLE" -H "Content-Type: application/json" \
  -d '{"destinataires": [{"prenom": "Hugo", "email": "hugo@example.com"}],
       "contact_ids": [41, 42], "pieces": ["RIB"]}'

Response: ajoutes (with their upload link) and laisses_de_cote: contributors already in the campaign, and those who asked not to be contacted. On creation too, POST /api/projets accepts contact_ids and groupe_id instead of, or in addition to, destinataires.

The sending sequence

Each campaign follows a sequence of steps: a day counted from the launch (0: the same day), a channel (email, sms, carte postcard, courrier letter, recommande registered letter, appel call, agent call by a voice agent) and an optional rewritten text; the merci step goes out once what the contributor sent is approved. Sending times (a time window in Paris, no weekends, no public holidays) push a step to the next open slot.

curl https://pleasesendit.com/api/projets/12/sequence -H "Authorization: Bearer $PSE_CLE"

Response: sequence (dated steps, moments, type) and bilan: contributions received (recues / attendues), sends in the worst case if nobody replies (au_pire), tokens (au_pire: tokens needed if nobody replies, solde: balance, couts: cost of each send), stocks (how many sends of each kind the balance covers) and what is missing (manque) when the worst-case tokens exceed the balance. alertes_tokens: mode (attendre or sauter, set in "My settings"), solde and alertes, one per step waiting for tokens (en_attente), skipped for lack of tokens (sautee) or upcoming and not covered by the balance at worst (a_venir), with tokens, manque and issue (attente or saut). The same field is in GET /api/projets/<id>.

curl https://pleasesendit.com/api/projets/12/sequence \
  -H "Authorization: Bearer $PSE_CLE" -H "Content-Type: application/json" \
  -d '{"type": "standard",
       "operations": [{"action": "ajouter", "canal": "sms", "jour": 6, "texte": "Quick reminder: {link}"},
                      {"action": "deplacer", "etape_id": "e3", "jour": 9},
                      {"action": "retirer", "etape_id": "e5"}],
       "moments": {"debut": 9, "fin": 18, "weekend": true, "feries": true},
       "merci": "{greeting}, thank you, everything has arrived for {request}."}'

Tokens

Sends that have a cost are paid in tokens: Email: 20 free, then 1 token per 50; text message: 2; WhatsApp: 3 (soon); phone message: 3 (soon); AI agent call: 7 (soon); postcard: 45; personalised postcard: 50; letter: 40; registered letter with acknowledgement: 130; small gift: 250 (soon); champagne: 600 (soon). Tokens included in the plan are used first, then purchased or gifted tokens; they are debited when the send goes out and given back if the provider refuses it.

curl https://pleasesendit.com/api/tokens -H "Authorization: Bearer $PSE_CLE"
{"solde": 340, "inclus": {"restant": 40, "par_mois": 60, "mois": "2026-10"}, "achetes": 300, "expirants": [],
 "grille": {"prix_token": 10,
            "couts": {"email": 0, "sms": 2, "whatsapp": 3, "appel": 3, "appel_agent": 7,
                      "carte": 45, "carte_perso": 50, "courrier": 40, "recommande": 130},
            "packs": [{"tokens": 100, "prix": 1000}, {"tokens": 500, "prix": 4750}, {"tokens": 1000, "prix": 9000}]},
 "historique": [{"le": "2026-10-02T09:12:00+00:00", "genre": "consommation", "service": "sms", "tokens": -2, "detail": "…"}]}

Amounts in euro cents including VAT; prix_token is the price of one token in the smallest pack. expirants lists gifted tokens from a gift code that carry an expiry date. Buying a pack and entering a gift code are done on the website, "My subscription" page, never with an API key.

My contributors (the address book)

The people you ask for documents, in the key's organization. An entry has bloque_le if the person asked not to be contacted, and appel_refuse_le if they refuse calls: these flags are read-only through the API; a blocked entry keeps its email and phone and cannot be deleted.

Bulk import, without duplicates: an entry with the same email or phone is merged (its empty fields filled in, nothing overwritten), created anyway, or skipped.

curl https://pleasesendit.com/api/contacts/importer \
  -H "Authorization: Bearer $PSE_CLE" -H "Content-Type: application/json" \
  -d '{"doublons": "fusionner", "groupe": "Gala guests",
       "contacts": [{"prenom": "Camille", "nom_famille": "Martin", "email": "camille.martin@example.com"}]}'

Response: crees (created), fusionnes (merged), ignores (skipped), erreurs (with their rank) and ids (each entry's ID, in order).

Recipes for Zapier, Make and n8n

Three ready-to-copy flows. They only use the routes above, with your key in the Authorization: Bearer header. In each tool, the "HTTP call" step is its generic web request module (Webhooks by Zapier, Make's HTTP module, n8n's HTTP Request node). Trigger names depend on the tool and its version: pick the "new attendee", "new row" or "new contact" trigger of the app you use.

1. New Eventbrite or Luma attendee: the contributor joins a group and a campaign

  1. Once: create the group (POST /api/contacts/groupes {"nom": "Gala guests"}) and the campaign (on the website or with POST /api/projets), and note its ID, for example 12. Launch it.
  2. Trigger: a new attendee in your ticketing tool (Eventbrite or Luma), with first name, last name and email.
  3. HTTP call: POST https://pleasesendit.com/api/contacts/importer, body {"doublons": "fusionner", "groupe": "Gala guests", "contacts": [{"prenom": "…", "nom_famille": "…", "email": "…"}]}. Keep ids[0] from the response.
  4. HTTP call: POST https://pleasesendit.com/api/projets/12/destinataires, body {"contact_ids": [ids[0]]}. The contributor is invited right away; if they are already in the campaign, nothing is sent twice.

For n8n, the same flow, to import as a workflow file: n8n-inscrit-groupe-dossier.json. It starts with a Webhook node: point your ticketing tool's webhook at it, or replace it with its n8n trigger, then replace pse_VOTRE_CLE with your key in both HTTP Request nodes (or better, with an n8n header credential), and the campaign ID and group in the Code node.

2. New Google Sheets row: a contact and a campaign

  1. Trigger: a new row in the sheet (columns First name, Last name, Email, for example).
  2. HTTP call: POST /api/contacts/importer as above (group optional). Keep ids[0].
  3. HTTP call: POST /api/projets, body {"nom": "Request for [First name] [Last name]", "echeance": "2026-11-30", "pieces": [{"cle": "rib", "nom": "Bank details", "format": "document"}], "contact_ids": [ids[0]], "sequence_type": "douce"}. Keep id.
  4. HTTP call: POST /api/projets/[id]/lancer so the invitation goes out.

3. New HubSpot contact: an entry in My contributors

  1. Trigger: a new contact in HubSpot (first name, last name, email, phone).
  2. HTTP call: POST /api/contacts/importer, body {"doublons": "fusionner", "groupe": "HubSpot", "contacts": [{"prenom": "…", "nom_famille": "…", "email": "…", "telephone": "…"}]}. An existing contact is completed, never duplicated or overwritten.

Rated and multiple-choice questions, answers export

A document in the question format takes an optional question field: absent (or {"type": "texte"}), a free written answer; {"type": "note", "libelle_min": "Beginner", "libelle_max": "Fluent"}, a rating from 1 to 5 stars; {"type": "choix", "options": ["French", "English", "Spanish"], "multiple": true, "autre": true}, a choice from a list (2 to 20 options, single or multiple, "Other" with free text). The same fields go through creer_projet (MCP) and ready-made requests.

"pieces": [{"nom": "Level of English", "format": "question", "question": {"type": "note"}},
           {"nom": "Languages spoken", "format": "question",
            "question": {"type": "choix", "options": ["French", "English"], "multiple": true, "autre": true}}]

In GET /api/projets/<id>, each answer keeps reponse (readable text: "4", "French; English; Other: Italian") and reponse_valeur ({"note": 4}, or {"choix": [...], "indices": [...], "autre": "..."}).

Answers as a table, one row per contributor (first name, last name, email, phone, team if any, reply date) and one column per document: the rating as a number, choices separated by ";", the text, a link's address, "received on …" for a file (without the file):

curl -OJ https://pleasesendit.com/api/projets/12/reponses.xlsx -H "Authorization: Bearer $PSE_CLE"
curl -OJ https://pleasesendit.com/api/projets/12/reponses.csv -H "Authorization: Bearer $PSE_CLE"
curl https://pleasesendit.com/api/projets/12/reponses.json -H "Authorization: Bearer $PSE_CLE"

The CSV is UTF-8: semicolon separator in French, comma in English. MCP tool: exporter_reponses.

Preferred channels and group message

Download an upload

The ID of an upload is found in destinataires[].depots[].id in the response of View a campaign.

curl -OJ https://pleasesendit.com/api/projets/12/depots/56 -H "Authorization: Bearer $PSE_CLE"

Download everything as a ZIP

curl -OJ https://pleasesendit.com/api/projets/12/zip -H "Authorization: Bearer $PSE_CLE"

The ZIP keeps the same organization: one folder per contributor, files named "Contributor - Document".

Other routes

See also llms.txt, Your data, Terms of Use.