You can click through a dashboard to shorten a link, or you can do it from a script. This tutorial covers the script route with the Elido SDKs for TypeScript, Python and Go, then the assistant route: an MCP server that lets Claude Desktop or Cursor create links and read stats for you.
We ran every snippet below against the live API on a fresh free account, using the published packages ( @elido/sdk 0.1.1, elido-sdk 0.1.0, elido-go v0.1.1, @elido/mcp-server 0.1.1). The outputs shown are the real ones from that run; swap in your own key and ids.
What you need
A free Elido account. The free plan has 25 links and 500 tracked clicks a month ( pricing ).
An API key from the dashboard (API keys section). Keys start with elido_ .
A workspace id. Every link call is scoped to one. The SDKs can list the workspaces your key sees, so you don't have to dig it out of the UI.
A domain id. A link has to live on a domain.…