Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Onerail Product API
version: 1.0.0
license:
name: UNLICENSED
url: ''
description: 'Operations tagged Product across 2 of this provider''s published API definitions: onerail-operations-api-openapi.yml, onerail-product-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /
description: Default relative server URL
security:
- bearer: []
tags:
- name: Product
paths:
/v1/organization/{organizationId}/product:
parameters:
- name: organizationId
in: path
required: true
schema:
type: string
post:
x-exegesis-controller: Product
summary: Creates a new Product
operationId: createProduct
tags:
- Product
requestBody:
content:
application/json:
schema:
type: object
properties:
description:
type: string
identifier:
type: string
priceCent:
type: number
lengthIn:
type: number
widthIn:
type: number
heightIn:
type: number
weightLbs:
type: number
required:
- description
- identifier
- priceCent
- lengthIn
- widthIn
- heightIn
- weightLbs
responses:
'200':
description: Product successfuly created
content:
application/json:
schema:
type: object
properties:
id:
type: string
description:
type: string
identifier:
type: string
priceCent:
type: number
lengthIn:
type: number
widthIn:
type: number
heightIn:
type: number
weightLbs:
type: number
default:
$ref: '#/paths/~1v1~1routes/get/responses/404'
servers:
- url: /
description: Default relative server URL
/v1/product/bulk:
post:
x-exegesis-controller: Product
summary: CSV file with products
operationId: bulk
tags:
- Product
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
name:
type: string
fileData:
type: string
format: binary
responses:
'200':
description: Bulk products processed successfully
content:
application/json:
schema:
type: object
properties:
key:
type: string
default:
$ref: '#/paths/~1v1~1routes/get/responses/404'
servers:
- url: /
description: Default relative server URL
components:
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'Standard JWT bearer token used for authenticated OmniPoint users
and internal service-to-service calls. Clients send `Authorization: Bearer <jwt>`
and the token is validated using the shared Core access token secret.
'
ApiKey:
type: apiKey
in: header
name: X-ONERAIL-API-KEY
description: 'Shared secret key used for machine-to-machine integrations. Must be sent
together with `X-ONERAIL-APP-ID` and is validated against the stored ApiAuth
record for that application.
'
AppId:
type: apiKey
in: header
name: X-ONERAIL-APP-ID
description: 'Application identifier (UUID) that pairs with `X-ONERAIL-API-KEY` for
machine-to-machine integrations. Both headers are required for ApiKey-based
authentication.
'
OAuth:
type: oauth2
description: 'OAuth 2.0 access token validated by the Operations service (e.g. Okta-backed
integrations). Clients obtain tokens from their own IdP outside of this API
and call endpoints with `Authorization: OAuth <access_token>`. The
`authorizationUrl` and `tokenUrl` values below are placeholders only to
satisfy the OpenAPI schema; this service does not call them directly and the
real IdP URLs are configured via environment and introspection logic in code.
'
flows:
authorizationCode:
authorizationUrl: https://dummy-unused-url.com
tokenUrl: https://dummy-unused-url.com
scopes: {}
x-refined-from:
- onerail-operations-api-openapi.yml
- onerail-product-api-openapi.yml