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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/onyxmetric-com:onyxmetric-com-segments-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
openapi: 3.2.0
info:
title: Onyxmetric Com Segments API
version: 2.8.0-beta
contact:
name: OnyxMetric
url: https://onyxmetric.com/contact
termsOfService: https://onyxmetric.com/terms-and-conditions
description: 'Operations tagged Segments 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: Segments
description: Segments API operations.
paths:
/api/sites/{site}/segments:
post:
summary: Create Segment
description: Creates a saved segment. Members create site segments they own; editors, admins, and owners can also create organization-wide segments.
operationId: postApiSitesSiteSegments
tags:
- Segments
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/segments/create
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: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
get:
summary: Get Segments
description: 'Returns the saved segments available on a site: its own plus organization-wide ones. Callers without site access only see segments shown on the public dashboard.'
operationId: getApiSitesSiteSegments
tags:
- Segments
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/segments/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'
parameters:
- description: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
servers:
- url: https://app.onyxmetric.com
description: OnyxMetric Cloud API
/api/sites/{site}/segments/{segmentId}:
delete:
summary: Delete Segment
description: Deletes a saved segment. Editors, admins, and owners can delete any segment; members can delete segments they created. Links that already expanded the segment's filters keep working.
operationId: deleteApiSitesSiteSegmentsSegmentId
tags:
- Segments
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/segments/delete
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: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- description: segmentId identifier.
in: path
name: segmentId
required: true
schema:
type: string
minLength: 1
get:
summary: Get Segment
description: Returns one saved segment.
operationId: getApiSitesSiteSegmentsSegmentId
tags:
- Segments
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/segments/get
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: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- description: segmentId identifier.
in: path
name: segmentId
required: true
schema:
type: string
minLength: 1
put:
summary: Update Segment
description: Updates a saved segment. Editors, admins, and owners can edit any segment; members can edit segments they created. Only the fields you send change.
operationId: putApiSitesSiteSegmentsSegmentId
tags:
- Segments
security:
- BearerAuth: []
- QueryApiKey: []
- CookieSession: []
externalDocs:
url: https://onyxmetric.com/docs/api/segments/update
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: Numeric OnyxMetric Site ID or string identifier.
in: path
name: site
required: true
schema:
oneOf:
- type: integer
minimum: 1
- type: string
minLength: 1
- description: segmentId identifier.
in: path
name: segmentId
required: true
schema:
type: string
minLength: 1
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