Open Food Facts · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Open Food Facts Authentication API

4 actions 4 updates phrasing extends openapi/open-food-facts-authentication-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Open Food Facts's API. It is a proposal applied on top of the contract, not a document Open Food Facts publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 4

$.info
$.paths['/cgi/session.pl'].post
$.paths['/auth'].post
$.paths['/auth_by_cookie'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Open Food Facts Authentication API
  version: 1.0.0
extends: openapi/open-food-facts-authentication-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-18'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 3
- target: $.paths['/cgi/session.pl'].post
  update:
    x-apievangelist-phrasing:
      intent: Get a session cookie for writing
      effect: write
      questions:
      - How do I get a session cookie to write to Open Food Facts?
      - What do I send to log in and get a session cookie?
      instructions:
      - text: Log in as {user_id} with password {password} and return the session cookie.
        slots:
          user_id: requestBody.user_id
          password: requestBody.password
      - text: Get a session cookie for user {user_id}.
        slots:
          user_id: requestBody.user_id
      method: generated
      generated: '2026-11-18'
- target: $.paths['/auth'].post
  update:
    x-apievangelist-phrasing:
      intent: Get a bearer token from username and password
      effect: write
      questions:
      - How do I exchange my username and password for a bearer token?
      - Can I request a token for a specific scope?
      instructions:
      - text: Authenticate as {username} with password {password} and return a bearer token.
        slots:
          username: requestBody.username
          password: requestBody.password
      - text: Get a token for {username} scoped to {scope}.
        slots:
          username: requestBody.username
          scope: requestBody.scope
      method: generated
      generated: '2026-11-18'
- target: $.paths['/auth_by_cookie'].post
  update:
    x-apievangelist-phrasing:
      intent: Get a bearer token from a session cookie
      effect: write
      questions:
      - How do I turn my Open Food Facts session cookie into a bearer token?
      - Can I authenticate using the session cookie I already have?
      instructions:
      - text: Exchange session cookie {session} for a bearer token.
        slots:
          session: cookie.session
      - text: Authenticate with the session cookie I have.
      method: generated
      generated: '2026-11-18'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/open-food-facts-authentication-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.