openapi: 3.1.0
info:
title: Moody's Analytics Developer Platform Authentication Reference API
version: 1.0.0
description: Cross-cutting umbrella API surface for the Moody's Analytics developer platform covering authentication (OAuth2 client credentials and HMAC request signing), platform health, product catalog discovery, and a canonical pattern for asynchronous analysis-job execution used across multiple Moody's Analytics product APIs (Data Buffet, Scenario Studio, ImpairmentStudio, AutoCycle, ECCL).
contact:
name: Moody's Analytics Developer Support
email: helpeconomy@moodys.com
url: https://developer.moodys.com/
license:
name: Moody's Analytics Terms of Use
url: https://www.moodys.com/web/en/us/about/legal/terms-of-use.html
servers:
- url: https://api.economy.com
description: Moody's Analytics economy.com API gateway
- url: https://api.moodys.com
description: Moody's Analytics moodys.com API gateway
security:
- oauth2: []
tags:
- name: Reference
description: Operations for retrieving frequency, vintage, and file type metadata
paths:
/oauth2/token:
post:
operationId: getAccessToken
summary: Moody's Obtain an Access Token
description: Authenticates using OAuth2 client credentials and returns a bearer access token for subsequent API requests.
tags:
- Reference
security: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- grant_type
- client_id
- client_secret
properties:
grant_type:
type: string
enum:
- client_credentials
description: The OAuth2 grant type. Must be client_credentials.
client_id:
type: string
description: The API client ID issued by Moody's Analytics.
client_secret:
type: string
description: The API client secret issued by Moody's Analytics.
responses:
'200':
description: Successfully obtained access token
content:
application/json:
schema:
$ref: '#/components/schemas/AccessToken'
'400':
description: Invalid grant type or missing credentials
'401':
description: Invalid client credentials
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/frequencies:
get:
operationId: listFrequencies
summary: Moody's List Available Data Frequencies
description: Returns a list of all supported data frequencies (e.g., annual, quarterly, monthly, weekly, daily) that can be used for frequency conversion when retrieving series.
tags:
- Reference
responses:
'200':
description: Successfully retrieved frequency list
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/FrequencyInfo'
'401':
description: Unauthorized - invalid or expired token
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/vintages:
get:
operationId: listVintages
summary: Moody's List Available Vintages for a Series
description: Returns a list of available data vintages (historical revisions) for a specific series. Vintages enable access to previous versions of data as originally published.
tags:
- Reference
parameters:
- $ref: '#/components/parameters/mnemonic'
responses:
'200':
description: Successfully retrieved vintage list
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Vintage'
'400':
description: Invalid mnemonic
'401':
description: Unauthorized - invalid or expired token
'404':
description: Series mnemonic not found
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/filetypes:
get:
operationId: listFileTypes
summary: Moody's List Supported Output File Types
description: Returns a list of supported output file types for order data generation (e.g., CSV, Excel, XML, JSON).
tags:
- Reference
responses:
'200':
description: Successfully retrieved file type list
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/FileType'
'401':
description: Unauthorized - invalid or expired token
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
components:
schemas:
FrequencyInfo:
type: object
description: Metadata about a supported data frequency.
required:
- code
- name
properties:
code:
type: string
description: Single-character frequency code used in API parameters.
enum:
- A
- Q
- M
- W
- D
example: A
name:
type: string
description: Human-readable frequency name.
enum:
- Annual
- Quarterly
- Monthly
- Weekly
- Daily
example: Annual
description:
type: string
description: Description of the frequency and its typical use cases.
example: A sample description.
Vintage:
type: object
description: Metadata about a data vintage representing a historical revision of a series.
required:
- vintageDate
properties:
vintageDate:
type: string
format: date
description: The date this vintage was published.
example: '2026-01-15'
description:
type: string
description: Description of the vintage release context.
example: A sample description.
FileType:
type: object
description: Metadata about a supported output file type.
required:
- code
- name
properties:
code:
type: string
description: File type code used in order creation.
example: example_value
name:
type: string
description: Human-readable file type name.
example: Example Title
extension:
type: string
description: File extension (e.g., csv, xlsx, json, xml).
example: example_value
description:
type: string
description: Description of the file format.
example: A sample description.
AccessToken:
type: object
description: OAuth2 access token response.
required:
- access_token
- token_type
- expires_in
properties:
access_token:
type: string
description: The bearer access token for authenticating API requests.
example: example_value
token_type:
type: string
description: The type of token issued. Always "Bearer".
enum:
- Bearer
example: Bearer
expires_in:
type: integer
description: The number of seconds until the access token expires.
example: 10
parameters:
mnemonic:
name: mnemonic
in: query
description: The unique series mnemonic identifier. Mnemonics follow the Data Buffet naming convention, e.g., FGDP_US for US GDP or EMPLPAY.IUSA for US total nonfarm payrolls.
required: true
schema:
type: string
examples:
usGdp:
summary: US Gross Domestic Product
value: FGDP_US
usPayrolls:
summary: US Total Nonfarm Payrolls
value: EMPLPAY.IUSA
securitySchemes:
oauth2:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://api.economy.com/oauth2/token
scopes:
read: Read access to entitled Moody's Analytics products
write: Write access for job submission and basket / order management
hmac:
type: apiKey
in: header
name: Authorization
description: HMAC-SHA256 request signing scheme used as an alternative to OAuth2 on legacy Moody's Analytics product APIs (Data Buffet, Scenario Studio).
externalDocs:
description: Moody's Analytics Developer Portal
url: https://developer.moodys.com/