Fianu Labs Access Tokens API
Access tokens are required to authenticate and authorize requests to the Fianu API. The token is obtained via OAuth2 Client Credentials Grant and must be included in API requests as a Bearer token.
Access tokens are required to authenticate and authorize requests to the Fianu API. The token is obtained via OAuth2 Client Credentials Grant and must be included in API requests as a Bearer token.
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/fianu-labs:fianu-labs-access-tokens-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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:
description: 'Fianu Labs offers powerful APIs that simplify and automate governance processes.
With our flexible and customizable APIs, you can easily create, manage, and monitor governance policies, access real-time data and analytics, and automate repetitive tasks.
Let us help you streamline your governance processes and achieve your business objectives.'
title: Fianu Access Tokens API
contact:
name: Fianu Labs
url: https://fianu.io
email: support@fianu.io
version: 1.0.0
servers:
- url: https://app.fianu.io/api
security:
- BearerToken: []
tags:
- description: Access tokens are required to authenticate and authorize requests to the Fianu API. The token is obtained via OAuth2 Client Credentials Grant and must be included in API requests as a Bearer token.
name: Access Tokens
x-displayName: Access Tokens
paths:
/oauth/token:
post:
description: 'Retrieve an access token from the Fianu API using service account credentials.
The access token must be included as a Bearer token in subsequent API requests.
### Authentication Flow
1. Obtain a `client_id` and `client_secret` from your Fianu administrator.
2. For on-prem installations, also obtain the `realm` value (typically `"fianu"`).
3. Request an access token by making a `POST` request to `/api/oauth/token`, including `client_id`, `client_secret`, and, if applicable, `realm` in the request body.
4. Use the received token in the `Authorization` header of API requests.
### Token Request Example (SaaS)
```http
POST /api/oauth/token HTTP/1.1
Host: app.fianu.io
Content-Type: application/json
{
"client_id": "your-client-id",
"client_secret": "your-client-secret"
}
```
### Token Request Example (On-Prem)
```http
POST /api/oauth/token HTTP/1.1
Host: your.fianu.host
Content-Type: application/json
{
"client_id": "your-client-id",
"client_secret": "your-client-secret",
"realm": "fianu"
}
```
### Token Response Example
```json
{
"access_token": "eyJhbGciOiJIUzI1...",
"token_type": "Bearer"
}
```
### Usage in API Requests
```http
GET /api/assets HTTP/1.1
Host: app.fianu.io
Authorization: Bearer eyJhbGciOiJIUzI1...
...
```'
tags:
- Access Tokens
summary: Get Access Token
operationId: get_access_token
requestBody:
content:
application/json:
schema:
type: object
allOf:
- required:
- client_id
- required:
- client_secret
properties:
client_id:
description: Fianu Service Account Client ID
type: string
client_secret:
description: Fianu Service Account Client Secret
type: string
realm:
description: Realm name (required for on-prem installations only)
type: string
enum:
- fianu
description: 'Fianu service account credentials used to request an access token. For on-prem installations, the `realm` must also be specified.
'
required: true
responses:
'200':
description: Successfully obtained an access token.
content:
application/json:
schema:
type: object
properties:
access_token:
description: The JWT token to be used for authentication.
type: string
token_type:
description: The token type (always `Bearer`).
type: string
example: Bearer
'400':
description: Invalid request (e.g., missing parameters or incorrect credentials).
content:
application/json:
schema:
type: object
'401':
description: Unauthorized - Invalid `client_id` or `client_secret`.
content:
application/json:
schema:
type: object
security: []
/oauth/token/api-key:
post:
description: 'Retrieve an integration key from the Fianu API.
The obtained key can be used to authenticate inbound webhook requests and Fianu SVG Badges.
### Authentication Flow
1. Request an access token by making a `POST` request to `/api/oauth/token/api-key`.
2. Use the received token in the `X-Fianu-Integration-Token` header of the webhook configuration in Custom Headers or directly in the URL, e.g. ?X-Fianu-Integration-Token=.
### Token Request Example
```http
POST /api/oauth/token/api-key HTTP/1.1
Host: app.fianu.io
Content-Type: application/json
{
"shortName": "your-integration-name",
"webhookSecret": "your-integration-webhook-checksum-secret"
}
```
### Token Response Example
```json
{
"organization": "",
"status": "active",
"token": ""
}
```'
tags:
- Access Tokens
summary: Get Integration Token API Key
operationId: get_api_key_token
requestBody:
content:
application/json:
schema:
type: object
properties:
shortName:
description: Name of the integration - e.g. GitHub
type: string
webhookSecret:
description: Secret to validate hmac checksum of payload, if the integration supports signed payloads
type: string
description: 'Request body
'
required: true
responses:
'200':
description: Successfully obtained an access token.
content:
application/json:
schema:
type: object
properties:
organization:
description: The Fianu organization of the issuer.
type: string
status:
description: The token status. active|revoked
type: string
token:
description: The token content.
type: string
'400':
description: Invalid request (e.g., missing parameters, incorrect credentials, or unable to issue token).
content:
application/json:
schema:
type: object
'401':
description: Unauthorized - Invalid credentials.
content:
application/json:
schema:
type: object
components:
securitySchemes:
BearerToken:
description: JWT Bearer Token Auth
type: apiKey
name: Authentication
in: header
externalDocs:
description: Fianu Labs Documentation
url: https://docs.fianu.io
x-tagGroups:
- name: Authentication
tags:
- access_tokens
- name: Console
tags:
- collections
- controls
- domains
- policies
- environments
- targets
- gates
- indexes
- description: 'Every event that occurs throughout the software development lifecycle produces evidence. A Note represents a single piece of evidence. There are four types of Notes: Origin, Occurrence, Transaction, and Attestation. Each type varies in its traits and utility, but all Notes are digitally signed and stored in an immutable ledger where they can be queried on demand. If a query returns a Note that does not match its signature, it is considered untrusted and its evidence invalid. The following routes allow you to retrieve/display evidence Notes.'
name: Evidence
tags:
- evaluation
- ledger
- signatures
- evidence
- deployments
- notes
- events
- metrics
- name: Gating
tags:
- gating_check
- gating_enforce
- description: Integrations represent third-party tools and platforms that generate evidence for attestations. Integrations are designed to manage the third-party’s toolchain relationship with Fianu.
name: Integrations
tags:
- platforms
- plugins
- instances
- platform_types
- tools
- name: Assets
tags:
- assets
- accounts
- modules
- abstract_assets
- name: Inventory
tags:
- statistics
- sources
- description: Notification catalog, effective configuration, delivery channel integrations, and the user inbox.
name: Notifications
tags:
- notifications
- description: Team management, approval workflows, and account-level administration.
name: Administration
tags:
- team
- teams
- users
- tickets
- name: Server
tags:
- settings