Fianu Labs Service Accounts API

The service-accounts API from Fianu Labs, for service-accounts.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /service-accounts List Service Accounts #
POST /service-accounts Create Service Account #
GET /service-accounts/{client_id} Get Service Account #
PATCH /service-accounts/{client_id} Update Service Account #
POST /service-accounts/{client_id}/rotate-secret Rotate Service Account Secret #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fianu-labs:fianu-labs-service-accounts-api"
All apis
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.

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. 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 Specification

fianu-labs-service-accounts-api-openapi.yml Raw ↑
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 Service Accounts 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:
- name: Service Accounts
paths:
  /service-accounts:
    get:
      description: List all M2M service accounts belonging to the caller's organization.
      tags:
      - Service Accounts
      summary: List Service Accounts
      operationId: list_service_accounts
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/serviceAccountResponse'
        '401':
          description: Authentication required
    post:
      description: Create a new service account for API access. Supports M2M (default), web, and SPA app types. Returns the client_id and one-time client_secret.
      tags:
      - Service Accounts
      summary: Create Service Account
      operationId: create_service_account
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createServiceAccountRequest'
        description: Service account creation details
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/serviceAccountCreatedResponse'
        '400':
          description: Invalid request
        '401':
          description: Authentication required
  /service-accounts/{client_id}:
    get:
      description: Retrieve details for a specific service account by client_id.
      tags:
      - Service Accounts
      summary: Get Service Account
      operationId: get_service_account
      parameters:
      - description: The client_id of the service account
        name: client_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/serviceAccountResponse'
        '401':
          description: Authentication required
        '404':
          description: Service account not found
    patch:
      description: Update an existing service account's name, description, or roles.
      tags:
      - Service Accounts
      summary: Update Service Account
      operationId: update_service_account
      parameters:
      - description: The client_id of the service account
        name: client_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateServiceAccountRequest'
        description: Fields to update
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/serviceAccountResponse'
        '400':
          description: Invalid request
        '401':
          description: Authentication required
        '404':
          description: Service account not found
  /service-accounts/{client_id}/rotate-secret:
    post:
      description: Generate a new client_secret for a service account. The previous secret is immediately invalidated.
      tags:
      - Service Accounts
      summary: Rotate Service Account Secret
      operationId: rotate_service_account_secret
      parameters:
      - description: The client_id of the service account
        name: client_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rotateSecretResponse'
        '401':
          description: Authentication required
        '404':
          description: Service account not found
components:
  schemas:
    rotateSecretResponse:
      type: object
      title: RotateSecretResponse is returned on rotate-secret.
      properties:
        client_id:
          type: string
          x-go-name: ClientID
        client_secret:
          type: string
          x-go-name: ClientSecret
      x-go-name: RotateSecretResponse
      x-go-package: github.com/fianulabs/core/v2/external/transport/http/v1
    serviceAccountResponse:
      type: object
      title: ServiceAccountResponse is the response for GET/List (no secret).
      properties:
        app_type:
          type: string
          x-go-name: AppType
        callback_urls:
          type: array
          items:
            type: string
          x-go-name: CallbackURLs
        client_id:
          type: string
          x-go-name: ClientID
        description:
          type: string
          x-go-name: Description
        logout_urls:
          type: array
          items:
            type: string
          x-go-name: LogoutURLs
        name:
          type: string
          x-go-name: Name
        roles:
          type: array
          items:
            type: string
          x-go-name: Roles
      x-go-name: ServiceAccountResponse
      x-go-package: github.com/fianulabs/core/v2/external/transport/http/v1
    createServiceAccountRequest:
      type: object
      title: CreateServiceAccountRequest is the request body for creating a service account.
      properties:
        app_type:
          description: 'Application type: "m2m" (default), "web", or "spa"'
          type: string
          x-go-name: AppType
        callback_urls:
          description: OAuth callback/redirect URIs (required for web and spa types)
          type: array
          items:
            type: string
          x-go-name: CallbackURLs
        description:
          description: Description of the service account purpose
          type: string
          x-go-name: Description
        logout_urls:
          description: Allowed logout redirect URLs (optional)
          type: array
          items:
            type: string
          x-go-name: LogoutURLs
        name:
          description: Name of the service account (max 255 chars)
          type: string
          x-go-name: Name
        roles:
          description: 'Roles to assign (e.g. "external:system:provider", "internal:system:admin").

            Required for m2m. Not accepted for web/spa (user permissions govern access).'
          type: array
          items:
            type: string
          x-go-name: Roles
      x-go-name: CreateServiceAccountRequest
      x-go-package: github.com/fianulabs/core/v2/external/transport/http/v1
    updateServiceAccountRequest:
      type: object
      title: UpdateServiceAccountRequest is the request body for updating a service account.
      properties:
        callback_urls:
          description: Updated callback/redirect URIs (optional, replaces existing)
          type: array
          items:
            type: string
          x-go-name: CallbackURLs
        description:
          description: Updated description (optional)
          type: string
          x-go-name: Description
        logout_urls:
          description: Updated logout URLs (optional, replaces existing)
          type: array
          items:
            type: string
          x-go-name: LogoutURLs
        name:
          description: Updated name (optional)
          type: string
          x-go-name: Name
        roles:
          description: Updated roles (optional, replaces existing roles)
          type: array
          items:
            type: string
          x-go-name: Roles
      x-go-name: UpdateServiceAccountRequest
      x-go-package: github.com/fianulabs/core/v2/external/transport/http/v1
    serviceAccountCreatedResponse:
      type: object
      title: ServiceAccountCreatedResponse is returned on POST (includes one-time secret).
      properties:
        app_type:
          type: string
          x-go-name: AppType
        callback_urls:
          type: array
          items:
            type: string
          x-go-name: CallbackURLs
        client_id:
          type: string
          x-go-name: ClientID
        client_secret:
          type: string
          x-go-name: ClientSecret
        description:
          type: string
          x-go-name: Description
        logout_urls:
          type: array
          items:
            type: string
          x-go-name: LogoutURLs
        name:
          type: string
          x-go-name: Name
        roles:
          type: array
          items:
            type: string
          x-go-name: Roles
      x-go-name: ServiceAccountCreatedResponse
      x-go-package: github.com/fianulabs/core/v2/external/transport/http/v1
  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