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: OAuth Token O API
version: 1.0.0
description: Token endpoint using client credentials flow.
servers:
- url: https://api.standardmetrics.io
tags:
- name: O
paths:
/o/token/:
post:
summary: Get API Access Token
description: 'This endpoint allows you to retrieve an API access token using your `client_id` and `client_secret`.
To authenticate:
- Click `Try it ▶`
- Enter your **client_id** as the `Authorization.username`
- Enter your **client_secret** as the `Authorization.password`
The request must include the following body parameter:
- `grant_type`: This is always set to `client_credentials`
Hit `Send ▶` and the response will contain an `access_token`, which you can use as a Bearer token to authenticate requests to other endpoints.
```json
{
"access_token": "ACCESS_TOKEN",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "read write"
}
```'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
grant_type:
type: string
enum:
- client_credentials
default: client_credentials
description: Always set to 'client_credentials'
required:
- grant_type
parameters: []
security:
- basicAuth: []
responses:
'200':
description: Access token retrieved successfully
content:
application/json:
example:
access_token: ACCESS_TOKEN
expires_in: 3600
token_type: Bearer
scope: all read write
schema:
type: object
properties:
access_token:
type: string
expires_in:
type: integer
token_type:
type: string
scope:
type: string
required:
- access_token
- expires_in
- token_type
tags:
- O
operationId: postOToken
x-operation-id-source: derived
components:
securitySchemes:
basicAuth:
type: http
scheme: basic