4chems Customer API

The customer API from 4chems — 1 operation(s) for customer.

Operations 2

GET /v1/tenant/services List Tenant Services #
POST /v1/tenant/services Add Tenant Service #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/4chems-com:4chems-com-customer-api"
All apis
curl "https://apis.io/api/v1/apis?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. See our Privacy Policy and Terms.

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

OpenAPI Specification

4chems-com-customer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: platform-api Customer API
  description: 'Platform API: infrastructure, operational, and customer tiers.'
  version: 0.12.1
tags:
- name: Customer
paths:
  /v1/tenant/services:
    get:
      tags:
      - Customer
      summary: List Tenant Services
      description: 'Return the caller''s tenant''s active service subscriptions. Call this before

        offering to add a service, to check what is already subscribed.


        Like every tenant-scoped operation (ADR 0016 decision 6), accepts an

        optional `tenant_id`; omitted, the tenant comes from the token''s

        `organization` claim when the subject relates to exactly one tenant, else

        `422 tenant.ambiguous`. Requires at least `viewer` — gated on the

        DB-derived level, not merely the token''s `organization` claim, so a

        member whose assignment was revoked cannot read a stale tenant''s

        subscriptions even with a token that still carries the claim.'
      operationId: list_tenant_services
      security:
      - HTTPBearer: []
      parameters:
      - name: tenant_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Tenant Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  additionalProperties:
                    type: string
                title: Response List Tenant Services
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Customer
      summary: Add Tenant Service
      description: 'Request a new service subscription for the caller''s tenant and return its

        status. Call this when a tenant admin wants to add a service (ADR 0016

        code fix: requires `admin`, was `customer` realm role only).'
      operationId: add_tenant_service
      security:
      - HTTPBearer: []
      parameters:
      - name: tenant_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Tenant Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceSubscription'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
                title: Response Add Tenant Service
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-destructive: false
      x-idempotent: false
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ServiceSubscription:
      properties:
        service:
          type: string
          title: Service
      type: object
      required:
      - service
      title: ServiceSubscription
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer