Flatfile subpackage_secrets API

The subpackage_secrets API from Flatfile — 2 operation(s) for subpackage_secrets.

Operations 3

GET /secrets List secrets #
POST /secrets Upsert a Secret #
DELETE /secrets/{secretId} Delete a secret by it's Id #

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/flatfile-subpackage-secrets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

flatfile-subpackage-secrets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference subpackage_accounts Subpackage Secrets API
  version: 1.0.0
servers:
- url: https://api.x.flatfile.com/v1
tags:
- name: subpackage_secrets
paths:
  /secrets:
    get:
      operationId: list
      summary: List secrets
      description: Fetch all secrets for a given environmentId and optionally apply space overrides
      tags:
      - subpackage_secrets
      parameters:
      - name: environmentId
        in: query
        description: The Environment of the secret.
        required: false
        schema:
          $ref: '#/components/schemas/type_commons_EnvironmentId'
      - name: spaceId
        in: query
        description: The Space of the secret.
        required: false
        schema:
          $ref: '#/components/schemas/type_commons_SpaceId'
      - name: actorId
        in: query
        description: The Actor of the secret.
        required: false
        schema:
          $ref: '#/components/schemas/type_commons_ActorIdUnion'
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      - name: X-Disable-Hooks
        in: header
        required: true
        schema:
          type: string
          enum:
          - 'true'
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_secrets_SecretsResponse'
        '400':
          description: Error response with status 400
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_Errors'
        '404':
          description: Error response with status 404
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_Errors'
    post:
      operationId: upsert
      summary: Upsert a Secret
      description: Insert or Update a Secret by name for environment or space
      tags:
      - subpackage_secrets
      parameters:
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      - name: X-Disable-Hooks
        in: header
        required: true
        schema:
          type: string
          enum:
          - 'true'
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_secrets_SecretsResponse'
        '400':
          description: Error response with status 400
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_Errors'
        '404':
          description: Error response with status 404
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_Errors'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/type_secrets_WriteSecret'
  /secrets/{secretId}:
    delete:
      operationId: delete
      summary: Delete a secret by it's Id
      description: Deletes a specific Secret from the Environment or Space as is the case
      tags:
      - subpackage_secrets
      parameters:
      - name: secretId
        in: path
        description: The ID of the secret.
        required: true
        schema:
          $ref: '#/components/schemas/type_commons_SecretId'
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      - name: X-Disable-Hooks
        in: header
        required: true
        schema:
          type: string
          enum:
          - 'true'
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_secrets_SecretsResponse'
        '400':
          description: Error response with status 400
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_Errors'
        '404':
          description: Error response with status 404
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_Errors'
components:
  schemas:
    type_commons_GuestId:
      type: string
      description: Guest ID
      title: GuestId
    type_commons_UserId:
      type: string
      description: User ID
      title: UserId
    type_secrets_Secret:
      type: object
      properties:
        name:
          $ref: '#/components/schemas/type_secrets_SecretName'
          description: The reference name for a secret.
        value:
          $ref: '#/components/schemas/type_secrets_SecretValue'
          description: The secret value. This is hidden in the UI.
        environmentId:
          $ref: '#/components/schemas/type_commons_EnvironmentId'
          description: The Environment of the secret.
        spaceId:
          $ref: '#/components/schemas/type_commons_SpaceId'
          description: The Space of the secret.
        actorId:
          $ref: '#/components/schemas/type_commons_ActorIdUnion'
          description: The Actor of the secret.
        id:
          $ref: '#/components/schemas/type_commons_SecretId'
          description: The ID of the secret.
      required:
      - name
      - value
      - id
      description: The value of a secret
      title: Secret
    type_commons_Errors:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/type_commons_Error'
      required:
      - errors
      title: Errors
    type_commons_SpaceId:
      type: string
      description: Space ID
      title: SpaceId
    type_commons_Error:
      type: object
      properties:
        key:
          type: string
        message:
          type: string
      required:
      - message
      title: Error
    type_commons_AgentId:
      type: string
      description: Agent ID
      title: AgentId
    type_secrets_SecretValue:
      type: string
      description: The value of a secret. Minimum 1 character, maximum 1024
      title: SecretValue
    type_secrets_SecretsResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/type_secrets_Secret'
      required:
      - data
      title: SecretsResponse
    type_commons_SecretId:
      type: string
      description: Secret ID
      title: SecretId
    type_commons_ActorIdUnion:
      oneOf:
      - $ref: '#/components/schemas/type_commons_UserId'
      - $ref: '#/components/schemas/type_commons_AgentId'
      - $ref: '#/components/schemas/type_commons_GuestId'
      title: ActorIdUnion
    type_secrets_WriteSecret:
      type: object
      properties:
        name:
          $ref: '#/components/schemas/type_secrets_SecretName'
          description: The reference name for a secret.
        value:
          $ref: '#/components/schemas/type_secrets_SecretValue'
          description: The secret value. This is hidden in the UI.
        environmentId:
          $ref: '#/components/schemas/type_commons_EnvironmentId'
          description: The Environment of the secret.
        spaceId:
          $ref: '#/components/schemas/type_commons_SpaceId'
          description: The Space of the secret.
        actorId:
          $ref: '#/components/schemas/type_commons_ActorIdUnion'
          description: The Actor of the secret.
      required:
      - name
      - value
      description: The properties required to write to a secret. Value is the only mutable property. Name, environmentId, spaceId (optional) are used for finding the secret.
      title: WriteSecret
    type_secrets_SecretName:
      type: string
      description: The name of a secret. Minimum 1 character, maximum 1024
      title: SecretName
    type_commons_EnvironmentId:
      type: string
      description: Environment ID
      title: EnvironmentId
  securitySchemes:
    default:
      type: http
      scheme: bearer