OnyxMetric Organizations API

Organizations API operations.

GitHub OpenAPI

Operations 9

POST /api/organizations/{organizationId}/members Add Organization Member #
GET /api/organizations/{organizationId}/members Get Organization Members #
POST /api/organizations/{organizationId}/sites Create Site #
GET /api/organizations/{organizationId}/sites Get Organization Sites #
GET /api/org-event-count/{organizationId} Get Organization Event Count #
POST /api/auth/organization/invite-member Invite Member #
GET /api/organizations Get My Organizations #
POST /api/auth/organization/remove-member Remove Member #
POST /api/auth/organization/update-member-role Update Member Role #

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/onyxmetric-com:onyxmetric-com-organizations-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

onyxmetric-com-organizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onyxmetric Com Organizations API
  version: 2.8.0-beta
  contact:
    name: OnyxMetric
    url: https://onyxmetric.com/contact
  termsOfService: https://onyxmetric.com/terms-and-conditions
  description: 'Operations tagged Organizations across 2 of this provider''s published API definitions: onyxmetric-com-openapi.json, openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.onyxmetric.com
  description: OnyxMetric Cloud API
tags:
- name: Organizations
  description: Organizations API operations.
paths:
  /api/organizations/{organizationId}/members:
    post:
      summary: Add Organization Member
      description: Adds an existing user to an organization with a role. Requires admin or owner role, and you cannot assign a role above your own.
      operationId: postApiOrganizationsOrganizationIdMembers
      tags:
      - Organizations
      security:
      - BearerAuth: []
      - QueryApiKey: []
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/add-member
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      parameters:
      - description: organizationId identifier.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
    get:
      summary: Get Organization Members
      description: Returns all members of an organization with their user details and roles. Requires membership in the organization.
      operationId: getApiOrganizationsOrganizationIdMembers
      tags:
      - Organizations
      security:
      - BearerAuth: []
      - QueryApiKey: []
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/members
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      parameters:
      - description: organizationId identifier.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
          minLength: 1
    servers:
    - url: https://app.onyxmetric.com
      description: OnyxMetric Cloud API
  /api/organizations/{organizationId}/sites:
    post:
      summary: Create Site
      description: Creates a new site within an organization. Requires admin or owner role in the organization.
      operationId: postApiOrganizationsOrganizationIdSites
      tags:
      - Organizations
      security:
      - BearerAuth: []
      - QueryApiKey: []
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/create-site
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      parameters:
      - description: organizationId identifier.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
          minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
    get:
      summary: Get Organization Sites
      description: Returns all sites in an organization the caller can access, with usage and subscription info.
      operationId: getApiOrganizationsOrganizationIdSites
      tags:
      - Organizations
      security:
      - BearerAuth: []
      - QueryApiKey: []
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/sites
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      parameters:
      - description: organizationId identifier.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
          minLength: 1
    servers:
    - url: https://app.onyxmetric.com
      description: OnyxMetric Cloud API
  /api/org-event-count/{organizationId}:
    get:
      summary: Get Organization Event Count
      description: Returns daily event usage counts across an organization's sites.
      operationId: getApiOrgEventCountOrganizationId
      tags:
      - Organizations
      security:
      - BearerAuth: []
      - QueryApiKey: []
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/event-count
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      parameters:
      - description: organizationId identifier.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
          minLength: 1
    servers:
    - url: https://app.onyxmetric.com
      description: OnyxMetric Cloud API
  /api/auth/organization/invite-member:
    post:
      summary: Invite Member
      description: Send an organization invitation to a user by email.
      operationId: postApiAuthOrganizationInviteMember
      tags:
      - Organizations
      security:
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/invite-member
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
    servers:
    - url: https://app.onyxmetric.com
      description: OnyxMetric Cloud API
  /api/organizations:
    get:
      summary: Get My Organizations
      description: Returns all organizations the authenticated user is a member of, including all members for each organization. Excludes subscription and billing information. Supports both session cookies and API key (Bearer token) authentication.
      operationId: getApiOrganizations
      tags:
      - Organizations
      security:
      - BearerAuth: []
      - QueryApiKey: []
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/list
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    servers:
    - url: https://app.onyxmetric.com
      description: OnyxMetric Cloud API
  /api/auth/organization/remove-member:
    post:
      summary: Remove Member
      description: Remove a member from an OnyxMetric organization with a POST request to the API.
      operationId: postApiAuthOrganizationRemoveMember
      tags:
      - Organizations
      security:
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/remove-member
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
    servers:
    - url: https://app.onyxmetric.com
      description: OnyxMetric Cloud API
  /api/auth/organization/update-member-role:
    post:
      summary: Update Member Role
      description: Change an organization member's role.
      operationId: postApiAuthOrganizationUpdateMemberRole
      tags:
      - Organizations
      security:
      - CookieSession: []
      externalDocs:
        url: https://onyxmetric.com/docs/api/organizations/update-member-role
      responses:
        '200':
          description: Successful response. Refer to the linked endpoint documentation for the response fields.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Insufficient permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
    servers:
    - url: https://app.onyxmetric.com
      description: OnyxMetric Cloud API
components:
  schemas:
    ApiError:
      type: object
      additionalProperties: true
      required:
      - error
      - code
      - message
      - resolution
      properties:
        error:
          type: string
          description: Backward-compatible human-readable error.
        code:
          type: string
          description: Stable machine-readable error code.
        message:
          type: string
          description: Human-readable explanation.
        resolution:
          type: string
          description: Action the caller can take to recover.
        details:
          description: Optional structured context for this error.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Personal or organization API key sent as an Authorization Bearer token.
    QueryApiKey:
      type: apiKey
      in: query
      name: api_key
      description: Testing-only fallback. Bearer authentication is recommended.
    CookieSession:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: Authenticated dashboard session cookie. Secure deployments may prefix the cookie name with __Secure-.
externalDocs:
  description: OnyxMetric API documentation
  url: https://onyxmetric.com/docs/api/getting-started
x-refined-from:
- onyxmetric-com-openapi.json
- openapi.json