Skip to main content
Bot is allowed — every endpoint on this page accepts bot authentication via the Authorization: <user_id> <token> header. See the Bots guide.
Clody gives you a built-in GIF picker backed by the Giphy library. You search for a GIF using this API, get back a list of results with preview and full-resolution URLs, and then register the chosen URL with the CDN endpoint to receive a filename you can attach to a Branch message.
GIFs in Clody are powered by Giphy. All results are filtered to a PG-13 rating and sourced from the messaging_non_clips bundle, which excludes video clips and keeps responses lightweight.

Endpoints

Search GIFs — POST /api/gifs/search

Searches Giphy for animated GIFs matching your query. Returns up to 24 results. If you omit the query or send an empty string, the endpoint returns the current Giphy trending feed instead — great for the default state of your GIF picker. Request body
string
Search query, e.g. "celebration". Omit this field or pass an empty string to retrieve trending GIFs.
Response 200 — array of GIF objects.
string
Giphy’s unique identifier for the GIF.
string
URL of a small, lower-resolution version suitable for grid thumbnails and previews.
string
URL of the full-quality GIF. Pass this value to POST /api/cdn/benches/gif to attach it to a message.
Error responses

Attaching a GIF to a Branch Message

Once you have picked a GIF from the search results, attach it to a message in two steps. Step 1 — Register the GIF with the CDN
Response:
POST /api/cdn/benches/gif only accepts URLs whose hostname is giphy.com or a *.giphy.com subdomain. Passing any other URL returns 400 Bad Request.
Step 2 — Include the filename when creating the message Pass the returned filename in the cdn array of your POST /api/bm/create request body alongside any other attachments.

Full Example: Search Then Attach