Créer une sticky note avec l'API Miro

Ajoute une sticky note à un board et la renvoie avec son id. Sans position elle va au centre du board ; dans un frame (parent.id), la position se compte depuis le frame.

Identifiant
miro_create_sticky_note

L'appel

POST https://connect.reportei.com/api/tools/miro_create_sticky_note/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "board_id": "<board_id>"
  }
}

Votre système envoie l'id de la connexion de votre client et les arguments de la tool. Les headers sont les mêmes que pour toute l'API Connect : le token de votre produit et celui de votre client.

Paramètres

Les descriptions des paramètres suivent la documentation officielle de l'app, en anglais.

ParamètreTypeObligatoireDescription
board_idstringOuiId of the board, from List boards, or the part after /board/ in the URL of the board, which usually ends with an equals sign.
dataobjectNonText and shape of the sticky note.
styleobjectNonColor and text alignment of the sticky note.
positionobjectNonWhere the center of the sticky note goes, in pixels. On the board, 0,0 is the center of the board; inside a frame, the top-left corner of the frame.
geometryobjectNonSize of the sticky note, in pixels. Send width or height, never both: the shape keeps the proportion.
parentobjectNonFrame that holds the sticky note.

Connexions possibles

Votre client connecte son compte Miro une seule fois, avec l'un des modes ci-dessous. La même connexion sert à toutes les tools du toolkit.

OAuth avec l'app de votre produit

Vous enregistrez une fois l'app OAuth de votre produit, avec POST /api/merchants/credentials/miro, et votre client autorise le compte sur un écran de consentement. Connect renouvelle le token avant son expiration.

La réponse

En cas de succès, Connect conserve le statut et le corps de la réponse de l'app. Les erreurs HTTP renvoyées par l'app utilisent l'objet {error, api_error} ; l'authentification ou la validation peuvent échouer avant l'exécution. Le header X-Toolkit-Execution-Id identifie l'exécution enregistrée, consultable avec GET /api/tools/executions/{uuid}.

Prête pour les agents IA

L'input de cette tool est un JSON Schema, disponible via GET /api/tools/miro_create_sticky_note. Il devient la définition de tool de votre agent sans conversion.

Voyez Connect appliqué à votre produit.

Essayez-le pendant 15 jours sans carte, ou présentez votre cas à notre équipe.