Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Not Diamond Custom Routers API

The Custom Routers API from Not Diamond — 2 operation(s) for custom routers.

Not Diamond Custom Routers API is one of 4 APIs that Not Diamond publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Custom Routers. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 2 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.0.1, at version 2.0.

Requests are made against a single base URL, https://api.notdiamond.ai/v2.

2 operations 2 paths 4 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2.0
Base URL
https://api.notdiamond.ai/v2
Authentication
HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 1

Not Diamond Custom Routers API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — Not Diamond API key passed as a Bearer token.

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

Custom Routers 2
POST
/pzn/trainCustomRouter
Train a custom router.
trainCustomRouter body → 200401422
POST
/preferences/userPreferenceCreate
Create a user preference.
createUserPreference body → 200401

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are TrainCustomRouterRequest (7 properties), TrainCustomRouterResponse (1 property), UserPreferenceCreateRequest (1 property), UserPreferenceCreateResponse (1 property). Each schema is shown below with its type and property counts.

UserPreferenceCreateResponse
object
1 property
UserPreferenceCreateRequest
object
1 property
TrainCustomRouterRequest
object
7 properties 5 required
TrainCustomRouterResponse
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

notdiamond-custom-routers-api-openapi.yml Raw ↑

Other APIs Not Diamond publishes across the network.

Not Diamond Feedback API
Not Diamond Model Routing API
Not Diamond Models API