xfa-tech Affiliations API

The Affiliations API from xfa-tech — 2 operation(s) for affiliations.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

POST /affiliations Create an affiliation #
GET /affiliations Get all affiliations #
DELETE /affiliations Delete an affiliation #
DELETE /affiliations/affiliations-admin Delete an affiliation by admin #

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/xfa-tech:xfa-tech-affiliations-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. 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.

OpenAPI Specification

xfa-tech-affiliations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XFA Affiliations API
  version: '1'
servers:
- url: https://api.xfa.tech
  description: Production stack API url
- url: https://test-api.xfa.tech
  description: Test stack API url
security:
- bearerAuth: []
tags:
- name: Affiliations
paths:
  /affiliations:
    post:
      summary: Create an affiliation
      x-internal: true
      tags:
      - Affiliations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AffiliationRequestBody'
      responses:
        '200':
          description: Affiliation created
      operationId: postAffiliations
      x-operation-id-source: derived
    get:
      summary: Get all affiliations
      x-internal: true
      tags:
      - Affiliations
      responses:
        '200':
          description: Returns all affiliations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAffiliation'
      operationId: getAffiliations
      x-operation-id-source: derived
    delete:
      summary: Delete an affiliation
      x-internal: true
      tags:
      - Affiliations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                device_token:
                  type: string
                  description: Device token
                organization_id:
                  type: string
                  description: Organization ID
      responses:
        '204':
          description: Affiliation deleted
        '409':
          description: Device details changed during removal. Refresh and retry.
      operationId: deleteAffiliations
      x-operation-id-source: derived
  /affiliations/affiliations-admin:
    delete:
      summary: Delete an affiliation by admin
      x-internal: true
      tags:
      - Affiliations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organization_id:
                  type: string
                  description: Organization ID
                device_ids:
                  type: array
                  items:
                    type: string
                  description: Device IDs
                email:
                  type: string
                  description: Email address of the user whose invitations should also be removed
      responses:
        '204':
          description: Affiliation deleted
        '409':
          description: The approvals of one or more devices changed during removal. Every other device was removed (including its shadow); only the listed devices remain and can be retried.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  conflicting_device_ids:
                    type: array
                    items:
                      type: string
      operationId: deleteAffiliationsAffiliationsAdmin
      x-operation-id-source: derived
components:
  schemas:
    AffiliationRequestBody:
      type: object
      properties:
        device_token:
          type: string
          description: Device token
        invitation_token:
          type: string
          description: Invitation token
      required:
      - device_token
      - invitation_token
    ListAffiliation:
      type: object
      properties:
        affiliations:
          type: array
          items:
            $ref: '#/components/schemas/Affiliation'
    Affiliation:
      type: object
      properties:
        organization_id:
          type: string
          description: ID of the organization
        email:
          type: string
          description: Email of the user
        device_id:
          type: string
          description: ID of the device
        timestamp:
          type: string
          description: Timestamp of the affiliation
      required:
      - organization_id
      - email
      - device_id
      - timestamp
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT