Credit Benchmark Authentication API
JWT token generation and authentication
JWT token generation and authentication
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/creditbenchmark-authentication-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Creditbenchmark Authentication API
version: 1.0.0
contact:
name: Credit Benchmark API Support
email: api-support@creditbenchmark.com
url: https://creditbenchmark.com/support
license:
name: Proprietary
url: https://creditbenchmark.com/terms
description: 'Operations tagged authentication across 2 of this provider''s published API definitions: creditbenchmark-consensus-data-openapi.yml, creditbenchmark-openapi-original.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://gateway.creditbenchmark.com
description: Production gateway
- url: https://api.creditbenchmark.com
description: Production server
security:
- BearerAuth: []
tags:
- name: authentication
description: Token generation endpoints.
x-group: Authentication
paths:
/api/security/token:
post:
tags:
- authentication
summary: Create JWT Token
description: Create a JWT bearer token.
operationId: getToken
security: []
x-mint:
href: /api-reference/create-jwt-token
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- Username
- Password
additionalProperties: false
properties:
Username:
type: string
description: Your Credit Benchmark username.
example: your_username
Password:
type: string
format: password
description: Your Credit Benchmark password.
example: your_password
example:
Username: your_username
Password: your_password
responses:
'200':
description: Access token generated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
example:
accessToken: eyJraWQiOiJ4WldoaUZMd05OZ1VZVEtoVjVtam8tOFlvbTZ5Y0pyRXpGWlpqN3ltQ1E4IiwiYWxnIjoiUlMyNTYifQ...
expiresIn: 7200
tokenType: Bearer
'400':
$ref: '#/components/responses/AuthBadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
servers:
- url: https://gateway.creditbenchmark.com
description: Production gateway
/gartan/api/token:
post:
tags:
- authentication
summary: Create JWT Token
description: 'Create a JWT bearer token.
'
operationId: getToken
security: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- Username
- Password
- grant_type
properties:
Username:
type: string
description: Your Credit Benchmark username
example: your_username
Password:
type: string
format: password
description: Your Credit Benchmark password
example: your_password
grant_type:
type: string
enum:
- password
description: Grant type for authentication
example: password
encoding:
Username:
style: form
Password:
style: form
grant_type:
style: form
responses:
'200':
description: JWT token generated successfully
content:
application/json:
schema:
type: object
properties:
access_token:
type: string
description: JWT access token valid for 24 hours
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
token_type:
type: string
description: Token type (always "Bearer")
example: Bearer
expires_in:
type: integer
description: Token expiration time in seconds (86400 = 24 hours)
example: 86400
example:
access_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
token_type: Bearer
expires_in: 86400
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized_2'
servers:
- url: https://api.creditbenchmark.com
description: Production server
components:
responses:
InternalServerError:
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/SimpleError'
example:
error: An error occurred while processing your request. Please try again later.
AuthBadRequest:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/AuthError'
example:
error:
code: BAD_REQUEST
message: The request payload is invalid.
Unauthorized:
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedError'
example:
detail: Unauthorized request
BadRequest:
description: Bad request - invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: BAD_REQUEST
message: Invalid request parameters
details:
invalid_columns:
- BadColumn
allowed_columns: Please check documentation for valid column names
Unauthorized_2:
description: Unauthorized - invalid or missing JWT token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: UNAUTHORIZED
message: Invalid or missing JWT token
schemas:
SimpleError:
type: object
required:
- error
properties:
error:
type: string
UnauthorizedError:
type: object
required:
- detail
properties:
detail:
type: string
AuthError:
type: object
title: Error
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
TokenResponse:
type: object
title: TokenResponse
required:
- accessToken
- expiresIn
- tokenType
properties:
accessToken:
type: string
description: Bearer access token.
expiresIn:
type: integer
description: Token lifetime in seconds.
example: 7200
tokenType:
type: string
description: Token type.
example: Bearer
ValidationErrorDetail:
type: object
description: Single field validation error
properties:
field:
type: string
description: Location of the validation error (e.g. body.Parameters.portfolio)
example: body.Parameters.portfolio
message:
type: string
description: Human-readable error message
example: field required
type:
type: string
description: Machine-readable error type
example: value_error.missing
Error:
type: object
description: Standard error envelope used by the API
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: Machine-readable error code
example: BAD_REQUEST
message:
type: string
description: Human-readable error message
example: Invalid request parameters
details:
description: Optional structured details about the error
oneOf:
- type: array
items:
$ref: '#/components/schemas/ValidationErrorDetail'
- type: object
- type: string
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT bearer token.
x-refined-from:
- creditbenchmark-consensus-data-openapi.yml
- creditbenchmark-openapi-original.yml