# \#api

**URL:** https://forum.elixirforum.com/tag/api/48.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [For Elixir teams building APIs, what are you using for OpenAPI documentation and API lifecycle management?](https://forum.elixirforum.com/t/for-elixir-teams-building-apis-what-are-you-using-for-openapi-documentation-and-api-lifecycle-management/75776)

<div class="topic-metadata">

**Author:** [@Herve37](https://forum.elixirforum.com/u/Herve37)\
**Replies:** 14\
**Last updated:** [July 20, 2026, 2:53pm UTC](https://forum.elixirforum.com/t/for-elixir-teams-building-apis-what-are-you-using-for-openapi-documentation-and-api-lifecycle-management/75776 "2026-07-20T14:53:33Z")

</div>

We’re evaluating alternatives to Stoplight and looking for feedback on: OpenAPI support Documentation workflows Testing capabilities Migration experience Any recommendations from teams running APIs in prod…

---

## [You're probably underusing middleware for HTTP response handling](https://forum.elixirforum.com/t/youre-probably-underusing-middleware-for-http-response-handling/75409)

<div class="topic-metadata">

**Author:** [@fuelen](https://forum.elixirforum.com/u/fuelen)\
**Replies:** 0\
**Last updated:** [May 17, 2026, 9:26pm UTC](https://forum.elixirforum.com/t/youre-probably-underusing-middleware-for-http-response-handling/75409 "2026-05-17T21:26:50Z")

</div>

A note on a pattern I keep running into in Elixir API clients: status-code checks and body parsing live in code after Tesla.request, instead of inside the middleware chain itself. It looks fine from the caller’s side, b…

---

## [Phoenix Product Codex: Develop and deploy a REST API for Product Data Management with Elixir and Phoenix (self-published/Leanpub)](https://forum.elixirforum.com/t/phoenix-product-codex-develop-and-deploy-a-rest-api-for-product-data-management-with-elixir-and-phoenix-self-published-leanpub/70643)

<div class="topic-metadata">

**Author:** [@waseigo](https://forum.elixirforum.com/u/waseigo)\
**Replies:** 37\
**Last updated:** [April 29, 2026, 1:17pm UTC](https://forum.elixirforum.com/t/phoenix-product-codex-develop-and-deploy-a-rest-api-for-product-data-management-with-elixir-and-phoenix-self-published-leanpub/70643 "2026-04-29T13:17:40Z")

</div>

by Isaak Tsalicoglou Why this book is being written A few years ago I got fed up with the menial manual labor I was engaged in in our family business (TECTRA Ltd), in order to manage customer requests, product inv…

---

## [RPC on Elixir for web API?](https://forum.elixirforum.com/t/rpc-on-elixir-for-web-api/46896)

<div class="topic-metadata">

**Author:** [@quda](https://forum.elixirforum.com/u/quda)\
**Replies:** 11\
**Last updated:** [October 27, 2025, 7:14am UTC](https://forum.elixirforum.com/t/rpc-on-elixir-for-web-api/46896 "2025-10-27T07:14:03Z")

</div>

Tired of old REST/GraphQL web APIs I am wondering if there is a library for building Elixir APIs on/with RPC ? I’ve been using trpc - nice, swift, easy to deploy - but on Node & Typescript; I feel the need of something …

---

## [Turbopuffer - A client library for the Turbopuffer vector database / full-text search](https://forum.elixirforum.com/t/turbopuffer-a-client-library-for-the-turbopuffer-vector-database-full-text-search/72735)

<div class="topic-metadata">

**Author:** [@jallum](https://forum.elixirforum.com/u/jallum)\
**Replies:** 1\
**Last updated:** [October 4, 2025, 6:45pm UTC](https://forum.elixirforum.com/t/turbopuffer-a-client-library-for-the-turbopuffer-vector-database-full-text-search/72735 "2025-10-04T18:45:44Z")

</div>

Turbopuffer - Elixir client for vector and full-text search I’m excited to share Turbopuffer, a new Elixir client library for the Turbopuffer vector database API. Features Vector similarity search with cosine distanc…

---

## [AshAuthentication with multi-tenancy and API keys strategy](https://forum.elixirforum.com/t/ashauthentication-with-multi-tenancy-and-api-keys-strategy/71507)

<div class="topic-metadata">

**Author:** [@serpent](https://forum.elixirforum.com/u/serpent)\
**Replies:** 15\
**Last updated:** [July 12, 2025, 1:40pm UTC](https://forum.elixirforum.com/t/ashauthentication-with-multi-tenancy-and-api-keys-strategy/71507 "2025-07-12T13:40:31Z")

</div>

Just getting into multi-tenancy and the Ash support for it. My schema looks like: Organisation (global, tenant entity) Identity (global) —(has many)—\> User (tenant) User (tenant) —(has many)—\> Project (tenant) Token …

---

## [Ecommerce Software with Phoenix](https://forum.elixirforum.com/t/ecommerce-software-with-phoenix/71277)

<div class="topic-metadata">

**Author:** [@DidactMacros](https://forum.elixirforum.com/u/DidactMacros)\
**Replies:** 8\
**Last updated:** [July 6, 2025, 3:19am UTC](https://forum.elixirforum.com/t/ecommerce-software-with-phoenix/71277 "2025-07-06T03:19:16Z")

</div>

This question is in regards to building ecommerce platforms with phoenix and ecommerce software. I am aware of some pretty cool projects in ash, however there doesn’t seem to be a complete suite, so what I’m considering…

---

## [Building an API](https://forum.elixirforum.com/t/building-an-api/71244)

<div class="topic-metadata">

**Author:** [@code](https://forum.elixirforum.com/u/code)\
**Replies:** 5\
**Last updated:** [June 12, 2025, 10:01am UTC](https://forum.elixirforum.com/t/building-an-api/71244 "2025-06-12T10:01:33Z")

</div>

I want to transfer an API that was built using fastapi in python to elixir. Should I use phoenix or plug? Phoenix is excellent for web development, but is it overkill for an API that serves another frontend built in js? …

---

## [TestServer - No fuzz mocking of third-party services](https://forum.elixirforum.com/t/testserver-no-fuzz-mocking-of-third-party-services/50248)

<div class="topic-metadata">

**Author:** [@danschultzer](https://forum.elixirforum.com/u/danschultzer)\
**Replies:** 8\
**Last updated:** [May 27, 2025, 8:57am UTC](https://forum.elixirforum.com/t/testserver-no-fuzz-mocking-of-third-party-services/50248 "2025-05-27T08:57:55Z")

</div>

Hi everyone! TestServer is an easy way to mock third-party services in ExUnit. Features HTTP/1 HTTP/2 WebSocket TLS with self-signed certificates Flexible FIFO match rules Catches unexpected requests When test finishe…

---

## [Fast\_postman\_collection - Generative collection for Postman by Phoenix Router](https://forum.elixirforum.com/t/fast-postman-collection-generative-collection-for-postman-by-phoenix-router/63137)

<div class="topic-metadata">

**Author:** [@kalachlegends](https://forum.elixirforum.com/u/kalachlegends)\
**Replies:** 6\
**Last updated:** [April 5, 2025, 5:43am UTC](https://forum.elixirforum.com/t/fast-postman-collection-generative-collection-for-postman-by-phoenix-router/63137 "2025-04-05T05:43:19Z")

</div>

This library helps you generate a Postman collection from your Phoenix router (MyApp.Router). You can document your endpoints using @doc annotations for params, body, form data, and more. Pipelines (plugs) can also be …

---

## [Is there an Elixir equivalent to RubyLLM?](https://forum.elixirforum.com/t/is-there-an-elixir-equivalent-to-rubyllm/69983)

<div class="topic-metadata">

**Author:** [@jam](https://forum.elixirforum.com/u/jam)\
**Replies:** 1\
**Last updated:** [March 16, 2025, 5:06pm UTC](https://forum.elixirforum.com/t/is-there-an-elixir-equivalent-to-rubyllm/69983 "2025-03-16T17:06:30Z")

</div>

Saw this earlier and it looked pretty nice. Curious, is there an Elixir equivalent? https://github.com/crmne/ruby\_llm

---

## [Generate Elixir API from Swagger / OpenAPI 3.0](https://forum.elixirforum.com/t/generate-elixir-api-from-swagger-openapi-3-0/40671)

<div class="topic-metadata">

**Author:** [@vipes](https://forum.elixirforum.com/u/vipes)\
**Replies:** 24\
**Last updated:** [December 6, 2024, 6:45am UTC](https://forum.elixirforum.com/t/generate-elixir-api-from-swagger-openapi-3-0/40671 "2024-12-06T06:45:38Z")

</div>

Hi all. I’ve seen plenty of information about generating Swagger docs from a pre-existing Phoenix API. Has anyone come across a tool that has the ability to generate a Phoenix API from a Swagger / OpenAPI 3.0 specificati…

---

## [Elixir adds an extra slash in POST request body, making a URL inside it invalid](https://forum.elixirforum.com/t/elixir-adds-an-extra-slash-in-post-request-body-making-a-url-inside-it-invalid/67319)

<div class="topic-metadata">

**Author:** [@lukeclopez](https://forum.elixirforum.com/u/lukeclopez)\
**Replies:** 5\
**Last updated:** [November 8, 2024, 6:24am UTC](https://forum.elixirforum.com/t/elixir-adds-an-extra-slash-in-post-request-body-making-a-url-inside-it-invalid/67319 "2024-11-08T06:24:13Z")

</div>

The approximate code: params = %{query: "https://www.lol.com"} params = Jason.encode!(params) HTTPoison.post(url, params, headers, @options) The approximate request and response: \[ { "request": { …

---

## [Seeking thoughts on ProxyConf—An Elixir-Powered Control Plane for Envoyproxy](https://forum.elixirforum.com/t/seeking-thoughts-on-proxyconf-an-elixir-powered-control-plane-for-envoyproxy/67017)

<div class="topic-metadata">

**Author:** [@dergraf](https://forum.elixirforum.com/u/dergraf)\
**Replies:** 2\
**Last updated:** [October 27, 2024, 3:16pm UTC](https://forum.elixirforum.com/t/seeking-thoughts-on-proxyconf-an-elixir-powered-control-plane-for-envoyproxy/67017 "2024-10-27T15:16:54Z")

</div>

Hey everyone! :waving\_hand: I’ve been working on a side project for the last 4 months that I’m excited to share—it’s called ProxyConf! ProxyConf is a control plane for Envoyproxy, designed to make Envoy configuration si…

---

## [FPL - An elixir wrapper around the unofficial fantasy premier league api](https://forum.elixirforum.com/t/fpl-an-elixir-wrapper-around-the-unofficial-fantasy-premier-league-api/66534)

<div class="topic-metadata">

**Author:** [@briankariuki](https://forum.elixirforum.com/u/briankariuki)\
**Replies:** 0\
**Last updated:** [October 5, 2024, 2:20pm UTC](https://forum.elixirforum.com/t/fpl-an-elixir-wrapper-around-the-unofficial-fantasy-premier-league-api/66534 "2024-10-05T14:20:23Z")

</div>

fpl is an elixir wrapper for the unofficial Fantasy Premier League API. This package powers the telegram bot for Mechi. You can see it in action here. MechiBot Please take a look at the README or the docs. https://git…

---

## [I want to use a consumable api in node.js in my pheonix web app](https://forum.elixirforum.com/t/i-want-to-use-a-consumable-api-in-node-js-in-my-pheonix-web-app/65387)

<div class="topic-metadata">

**Author:** [@Trini](https://forum.elixirforum.com/u/Trini)\
**Replies:** 3\
**Last updated:** [August 11, 2024, 4:59pm UTC](https://forum.elixirforum.com/t/i-want-to-use-a-consumable-api-in-node-js-in-my-pheonix-web-app/65387 "2024-08-11T16:59:14Z")

</div>

Basically what I want to do is to incorporate node.js into my phoenix project and have it mount directly when I use mix phx.server. First of all I wanted to know if this is possible. And if so, where can I find out how t…

---

## [Phoenix live reloader with api server (--no\_html)](https://forum.elixirforum.com/t/phoenix-live-reloader-with-api-server-no-html/65146)

<div class="topic-metadata">

**Author:** [@bluejack](https://forum.elixirforum.com/u/bluejack)\
**Replies:** 2\
**Last updated:** [July 25, 2024, 9:41pm UTC](https://forum.elixirforum.com/t/phoenix-live-reloader-with-api-server-no-html/65146 "2024-07-25T21:41:13Z")

</div>

Building out an API server to handle json query/response. Setting up the environment I select all the recommended flags for building an API only server. mix phx.new myjsonapp-api --no-html --no-mailer \\ --no-gettext …

---

## [JWT based authentication integrating Firebase Authentication or AWS Cognito](https://forum.elixirforum.com/t/jwt-based-authentication-integrating-firebase-authentication-or-aws-cognito/65007)

<div class="topic-metadata">

**Author:** [@acrolink](https://forum.elixirforum.com/u/acrolink)\
**Replies:** 4\
**Last updated:** [July 24, 2024, 9:09am UTC](https://forum.elixirforum.com/t/jwt-based-authentication-integrating-firebase-authentication-or-aws-cognito/65007 "2024-07-24T09:09:43Z")

</div>

For an API only Phoenix Application I am looking for an authentication / user registration solution providing: A. Email and password authentication. B. Social authentication \[Google, Apple, Facebook\]. I think the best…

---

## [How to have string IDs with a prefix like Stripe has?](https://forum.elixirforum.com/t/how-to-have-string-ids-with-a-prefix-like-stripe-has/46767)

<div class="topic-metadata">

**Author:** [@stefanluptak](https://forum.elixirforum.com/u/stefanluptak)\
**Replies:** 6\
**Last updated:** [June 22, 2024, 9:33am UTC](https://forum.elixirforum.com/t/how-to-have-string-ids-with-a-prefix-like-stripe-has/46767 "2024-06-22T09:33:40Z")

</div>

When working with Stripe API (and dashboard), I got so used to their style of IDs. For customer, it is something like cus\_sd9f87gds987, for subscription it is sub\_df987gds98fg, for invoice it is in\_d98fg7d987fg, and so …

---

## [API call between two aps](https://forum.elixirforum.com/t/api-call-between-two-aps/63038)

<div class="topic-metadata">

**Author:** [@Nicolas](https://forum.elixirforum.com/u/Nicolas)\
**Replies:** 7\
**Last updated:** [April 22, 2024, 12:56am UTC](https://forum.elixirforum.com/t/api-call-between-two-aps/63038 "2024-04-22T00:56:09Z")

</div>

Hi, I’m building an app which I try to architecure as modular, inspired by microservices. The idea is to have one elixir appliciation for each bounded context. The question then is how to implement communication between…

---

## [User-friendly API errors in Phoenix?](https://forum.elixirforum.com/t/user-friendly-api-errors-in-phoenix/40399)

<div class="topic-metadata">

**Author:** [@mattei](https://forum.elixirforum.com/u/mattei)\
**Replies:** 3\
**Last updated:** [March 29, 2024, 2:50pm UTC](https://forum.elixirforum.com/t/user-friendly-api-errors-in-phoenix/40399 "2024-03-29T14:50:15Z")

</div>

Hi, newcomer to Phoenix and Elixir here, moving over from Django and REST Framework. Say I have a login function like this… def login(conn, %{"username" =\> username, "password" =\> password}) do ... end If I in…

---

## [A beginner journey into Phoenix, Surface and Live View](https://forum.elixirforum.com/t/a-beginner-journey-into-phoenix-surface-and-live-view/62248)

<div class="topic-metadata">

**Author:** [@karim-semmoud](https://forum.elixirforum.com/u/karim-semmoud)\
**Replies:** 0\
**Last updated:** [March 12, 2024, 8:39am UTC](https://forum.elixirforum.com/t/a-beginner-journey-into-phoenix-surface-and-live-view/62248 "2024-03-12T08:39:18Z")

</div>

My beginner journey into Elixir, Phoenix and Liveview started when reading about Changelog website and how fast it was reported to be by many developers. This is where it all started asdf install mix archive.instal…

---

## [Using Process.sleep for rate limiting external requests?](https://forum.elixirforum.com/t/using-process-sleep-for-rate-limiting-external-requests/61537)

<div class="topic-metadata">

**Author:** [@\_jonas](https://forum.elixirforum.com/u/_jonas)\
**Replies:** 24\
**Last updated:** [February 16, 2024, 9:04pm UTC](https://forum.elixirforum.com/t/using-process-sleep-for-rate-limiting-external-requests/61537 "2024-02-16T21:04:16Z")

</div>

Hey I’ve got a quick beginner question: I’m making requests to an external API using Finch. The API is rate limited, and when the limit is hit, it returns a 429 response which helpfully comes with a Retry-After header …

---

## [Your Opinions on Documenting HTTP APIs](https://forum.elixirforum.com/t/your-opinions-on-documenting-http-apis/42776)

<div class="topic-metadata">

**Author:** [@wmnnd](https://forum.elixirforum.com/u/wmnnd)\
**Replies:** 14\
**Last updated:** [November 28, 2023, 4:29pm UTC](https://forum.elixirforum.com/t/your-opinions-on-documenting-http-apis/42776 "2023-11-28T16:29:40Z")

</div>

Hey folks, this is an open question to all of you out there creating web applications with APIs. How do you go about documenting your APIs? Do you generally prefer to use frameworks such as Open API/Swagger or API Blue…

---

## [JSON REST with variable input structure in Phoenix?](https://forum.elixirforum.com/t/json-rest-with-variable-input-structure-in-phoenix/59987)

<div class="topic-metadata">

**Author:** [@dantodor](https://forum.elixirforum.com/u/dantodor)\
**Replies:** 5\
**Last updated:** [November 27, 2023, 5:21pm UTC](https://forum.elixirforum.com/t/json-rest-with-variable-input-structure-in-phoenix/59987 "2023-11-27T17:21:12Z")

</div>

Hello! I’m facing an issue that I don’t even know what to search on :slight\_smile: … I want to integrate my Phoenix app with an external app that offers webhook integration. So, it can send to my endpoint various messa…

---

## [Best way to handle 10s or 100s of thousands of API requests?](https://forum.elixirforum.com/t/best-way-to-handle-10s-or-100s-of-thousands-of-api-requests/59889)

<div class="topic-metadata">

**Author:** [@jarvism](https://forum.elixirforum.com/u/jarvism)\
**Replies:** 39\
**Last updated:** [November 26, 2023, 10:19pm UTC](https://forum.elixirforum.com/t/best-way-to-handle-10s-or-100s-of-thousands-of-api-requests/59889 "2023-11-26T22:19:59Z")

</div>

Hello, everyone! I have an Elixir Phoenix 1.7 app deployed to fly.io. I am receiving 10,000+ API calls at a time that I need to receive, acknowledge as quickly as possible, then do a few API calls of my own, receive the…

---

## [How to properly limit my own rate requests to external API?](https://forum.elixirforum.com/t/how-to-properly-limit-my-own-rate-requests-to-external-api/58864)

<div class="topic-metadata">

**Author:** [@managua1902](https://forum.elixirforum.com/u/managua1902)\
**Replies:** 20\
**Last updated:** [October 17, 2023, 4:46pm UTC](https://forum.elixirforum.com/t/how-to-properly-limit-my-own-rate-requests-to-external-api/58864 "2023-10-17T16:46:28Z")

</div>

I use Oban to make external API requests every N minutes. It’s turned out that the frequnecy I use it with is too dense such that it’ll cause an error “too many requests” from API, as there’s a limit there. How would I …

---

## [Auth using Phoenix API with React Native frontend in a separate code base](https://forum.elixirforum.com/t/auth-using-phoenix-api-with-react-native-frontend-in-a-separate-code-base/58793)

<div class="topic-metadata">

**Author:** [@MDodge](https://forum.elixirforum.com/u/MDodge)\
**Replies:** 3\
**Last updated:** [October 9, 2023, 12:37pm UTC](https://forum.elixirforum.com/t/auth-using-phoenix-api-with-react-native-frontend-in-a-separate-code-base/58793 "2023-10-09T12:37:08Z")

</div>

Hey all, I’m writing an app using Phoenix as an API and I have a separate codebase for React Native. I’m researching the best way to handle Auth in this scenario. I’ve been looking around quite a bit and I’m coming up …

---

## [Using external HTTP API for data storage](https://forum.elixirforum.com/t/using-external-http-api-for-data-storage/58797)

<div class="topic-metadata">

**Author:** [@artem](https://forum.elixirforum.com/u/artem)\
**Replies:** 3\
**Last updated:** [October 8, 2023, 11:32pm UTC](https://forum.elixirforum.com/t/using-external-http-api-for-data-storage/58797 "2023-10-08T23:32:28Z")

</div>

Hi all Context: external system with inconsistent, but feature-full API We use an external SaaS system for hiring people. There are candidates, jobs, recruiters and so on. We like the data inside and our recruiters lik…

---

## [Get Token for Protected API Routes via API (not UI)](https://forum.elixirforum.com/t/get-token-for-protected-api-routes-via-api-not-ui/58331)

<div class="topic-metadata">

**Author:** [@jarvism](https://forum.elixirforum.com/u/jarvism)\
**Replies:** 8\
**Last updated:** [September 20, 2023, 10:47am UTC](https://forum.elixirforum.com/t/get-token-for-protected-api-routes-via-api-not-ui/58331 "2023-09-20T10:47:51Z")

</div>

Hello! I have a Phoenix 1.7 LiveView app up and running with auth via mix phx.gen.auth Accounts User users. I’m still learning, but really enjoying it so far! I’m running into a situation, though, where I am not quit…

[Next page](https://forum.elixirforum.com/tag/api/48.md?match_all_tags=true&page=1&tags%5B%5D=api)
