AffinityRx Feedback API

Tell Affinity about a wrong or unclear response or page.

GitHub OpenAPI

Operations 1

POST /v1/feedback Send feedback #

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/affinityrx-com:affinityrx-com-feedback-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

affinityrx-com-feedback-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Affinity Feedback API
  version: '2026-11-01'
  contact:
    email: support@affinityrx.com
    name: Affinity API Support
    url: https://docs.affinityrx.com
  license:
    name: AffinityRx Terms of Service
    url: https://affinityrx.com/legal/terms
  termsOfService: https://affinityrx.com/legal/terms
  description: Affinity API for platforms and practices that order from the pharmacy network. If a response or a page is wrong or unclear, send `POST /v1/feedback` with an `Idempotency-Key`, a short message and the `requestId` from the response. Do not include patient information.
servers:
- url: https://api.affinityrx.com
security: []
tags:
- name: Feedback
  description: Tell Affinity about a wrong or unclear response or page.
paths:
  /v1/feedback:
    post:
      tags:
      - Feedback
      operationId: feedback.create
      parameters:
      - name: Idempotency-Key
        in: header
        schema:
          type: string
          pattern: ^[\x21-\x7e]{1,255}$
          description: A unique key per operation, 1 to 255 printable ASCII characters without spaces. Retry the same key and body to avoid repeating the action. The replay response depends on the operation. See https://docs.affinityrx.com/guides/#retry-safely.
        required: true
        description: A unique key per operation, 1 to 255 printable ASCII characters without spaces. Retry the same key and body to avoid repeating the action. The replay response depends on the operation. See https://docs.affinityrx.com/guides/#retry-safely.
      - description: The dated API version this request is written against. Required when the request sends an API key; without one, the current version applies.
        in: header
        name: Affinity-Version
        required: false
        schema:
          default: '2026-11-01'
          enum:
          - '2026-11-01'
          type: string
      security:
      - {}
      - apiKey: []
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                title: FeedbackCreateResponse
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^fbk_[0-7][0-9a-hjkmnp-tv-z]{25}$
                    examples:
                    - fbk_01j2y8m6jcc9tt24af5pw9x1bc
                required:
                - id
                examples:
                - id: fbk_01j2y8m6jcc9tt24af5pw9x1bc
                additionalProperties:
                  description: A field that this API version can add. Ignore fields that you do not know.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                title: FeedbackCreate400Response
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                title: FeedbackCreate401Response
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                title: FeedbackCreate409Response
                $ref: '#/components/schemas/Problem409'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '413':
          description: Content Too Large
          content:
            application/problem+json:
              schema:
                title: FeedbackCreate413Response
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '415':
          description: Unsupported Media Type
          content:
            application/problem+json:
              schema:
                properties:
                  code:
                    description: A stable code for the problem. Branch on it, not on detail.
                    const: unsupported_media_type
                    type: string
                  detail:
                    description: What went wrong and what to do, for a person to read.
                    type: string
                  title:
                    description: A short summary of the problem's type.
                    type: string
                  type:
                    description: A URI that names the problem's type.
                    type: string
                  instance:
                    description: The path of the request.
                    type: string
                  requestId:
                    description: Identifies the request, as its X-Request-Id header does. Send it when you report a problem.
                    type: string
                  status:
                    description: The HTTP status code of the response.
                    type: integer
                  traceId:
                    description: The request trace ID.
                    type: string
                required:
                - code
                - detail
                - instance
                - requestId
                - status
                - title
                - type
                type: object
                additionalProperties:
                  description: A field that this API version can add. Ignore fields that you do not know.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                title: FeedbackCreate429Response
                $ref: '#/components/schemas/Problem429'
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                title: FeedbackCreate500Response
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
        '503':
          description: Service Unavailable
          content:
            application/problem+json:
              schema:
                title: FeedbackCreate503Response
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Affinity-Trace-Id:
              $ref: '#/components/headers/X-Affinity-Trace-Id'
            X-Api-Version:
              $ref: '#/components/headers/X-Api-Version'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                message:
                  type: string
                  maxLength: 5000
                  pattern: ^\s*[^\s\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f](?:[^\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]*[^\s\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f])?\s*$
                  description: Text with at least one visible character.
                pageUrl:
                  type: string
                  maxLength: 2000
                requestId:
                  type: string
                  pattern: ^(?:([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})|req_[0-7][0-9a-hjkmnp-tv-z]{25})$
                  examples:
                  - req_01j2y8m6jcc9tt24af5pw9x1bc
                  description: 'The `requestId` of the response, as the API returned it: a UUID or its `req_` form.'
              required:
              - message
              additionalProperties: false
              examples:
              - message: The error does not explain which field is invalid.
                pageUrl: https://docs.affinityrx.com/errors/
                requestId: 6e562761-eff3-4626-a8b9-25ce7c670ccd
        required: true
        description: 'Send the JSON body with Content-Type: application/json.'
      description: Send feedback without credentials, or with an API key to include its organization and mode. Do not include patient information. API-key callers are limited to 10 submissions per hour per key. Anonymous callers are limited to 10 submissions per hour per IP address. A 429 response includes Retry-After in seconds.
      summary: Send feedback
components:
  headers:
    X-Request-Id:
      description: Identifies this request. A problem response also returns it as `requestId`.
      schema:
        type: string
    X-Api-Version:
      description: The resolved API version. Absent when no version resolved.
      schema:
        type: string
    X-Affinity-Trace-Id:
      description: The request trace ID, also returned as traceId in problems.
      schema:
        pattern: ^[0-9a-f]{32}$
        type: string
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        minimum: 1
        type: integer
  schemas:
    Problem409:
      allOf:
      - $ref: '#/components/schemas/Problem'
      - properties:
          data:
            type: object
            properties:
              orderId:
                type: string
                pattern: ^ord_[0-7][0-9a-hjkmnp-tv-z]{25}$
                examples:
                - ord_01j2y8m6jcc9tt24af5pw9x1bc
              practiceId:
                type: string
                pattern: ^prac_[0-7][0-9a-hjkmnp-tv-z]{25}$
                examples:
                - prac_01j2y8m6jcc9tt24af5pw9x1bc
            additionalProperties:
              description: A field that this API version can add. Ignore fields that you do not know.
        type: object
    Problem429:
      allOf:
      - $ref: '#/components/schemas/Problem'
      - properties:
          data:
            type: object
            properties:
              retryAfterSeconds:
                type: integer
                minimum: 1
                maximum: 9007199254740991
            required:
            - retryAfterSeconds
            additionalProperties:
              description: A field that this API version can add. Ignore fields that you do not know.
        type: object
    Problem:
      properties:
        code:
          description: A stable code for the problem. Branch on it, not on detail.
          type: string
        detail:
          description: What went wrong and what to do, for a person to read.
          type: string
        title:
          description: A short summary of the problem's type.
          type: string
        type:
          description: A URI that names the problem's type.
          type: string
        issues:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: A stable code for this field's problem.
              field:
                type: string
                description: The field as one string, such as `patient.address.state` or `prescriptions[0].quantity`.
              message:
                type: string
                description: What is wrong with the field and what to send, for a person to read.
              path:
                type: array
                items:
                  anyOf:
                  - type: string
                  - type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                description: The field as a list of property names and array indexes.
            required:
            - code
            - field
            - message
            - path
            additionalProperties:
              description: A field that this API version can add. Ignore fields that you do not know.
          description: One entry for each field that the request got wrong, when the problem is about fields.
        instance:
          description: The path of the request.
          type: string
        requestId:
          description: Identifies the request, as its X-Request-Id header does. Send it when you report a problem.
          type: string
        status:
          description: The HTTP status code of the response.
          type: integer
        traceId:
          description: The request trace ID.
          type: string
      required:
      - code
      - detail
      - instance
      - requestId
      - status
      - title
      - type
      type: object
      additionalProperties:
        description: A field that this API version can add. Ignore fields that you do not know.
  securitySchemes:
    apiKey:
      bearerFormat: sk_test_… or sk_live_…
      description: 'Send Authorization: Bearer <key> with an active API key from the Affinity dashboard. Test and Live keys act in their mode.'
      scheme: bearer
      type: http