Flatfile subpackage_assistant API
The subpackage_assistant API from Flatfile — 2 operation(s) for subpackage_assistant.
The subpackage_assistant API from Flatfile — 2 operation(s) for subpackage_assistant.
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/flatfile-subpackage-assistant-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: Reference subpackage_accounts Subpackage Assistant API
version: 1.0.0
servers:
- url: https://api.x.flatfile.com/v1
tags:
- name: subpackage_assistant
paths:
//prompts:
get:
operationId: list
summary: List prompts
description: Returns prompts created by user
tags:
- subpackage_assistant
parameters:
- name: promptType
in: query
description: Type of prompt (default AI_ASSIST)
required: false
schema:
$ref: '#/components/schemas/type_assistant_PromptTypeQueryEnum'
- name: pageSize
in: query
description: Number of prompts to return in a page (default 7)
required: false
schema:
type: integer
- name: pageNumber
in: query
description: Based on pageSize, which page of prompts to return
required: false
schema:
type: integer
- 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_assistant_PromptsResponse'
post:
operationId: create
summary: Create a prompt
description: Creates a prompt
tags:
- subpackage_assistant
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_assistant_PromptResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/type_assistant_PromptCreate'
//prompts/{promptId}:
get:
operationId: get
summary: Get a prompt
description: Returns a prompt
tags:
- subpackage_assistant
parameters:
- name: promptId
in: path
description: ID of prompts
required: true
schema:
$ref: '#/components/schemas/type_commons_PromptId'
- 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_assistant_PromptResponse'
patch:
operationId: update
summary: Update a prompt
description: Updates a prompt
tags:
- subpackage_assistant
parameters:
- name: promptId
in: path
description: ID of prompts
required: true
schema:
$ref: '#/components/schemas/type_commons_PromptId'
- 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_assistant_PromptResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/type_assistant_PromptPatch'
delete:
operationId: delete
summary: Delete a prompts
description: Deletes a prompts
tags:
- subpackage_assistant
parameters:
- name: promptId
in: path
description: ID of prompts
required: true
schema:
$ref: '#/components/schemas/type_commons_PromptId'
- 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_commons_Success'
components:
schemas:
type_assistant_PromptsResponse:
type: object
properties:
pagination:
$ref: '#/components/schemas/type_commons_Pagination'
data:
type: array
items:
$ref: '#/components/schemas/type_assistant_Prompt'
required:
- data
title: PromptsResponse
type_assistant_PromptCreate:
type: object
properties:
promptType:
$ref: '#/components/schemas/type_assistant_PromptTypeEnum'
description: Type of prompt; Defaults to AI_ASSIST
prompt:
type: string
environmentId:
$ref: '#/components/schemas/type_commons_EnvironmentId'
spaceId:
$ref: '#/components/schemas/type_commons_SpaceId'
required:
- prompt
- environmentId
- spaceId
description: Create a prompts
title: PromptCreate
type_commons_SpaceId:
type: string
description: Space ID
title: SpaceId
type_assistant_Prompt:
type: object
properties:
id:
$ref: '#/components/schemas/type_commons_PromptId'
createdById:
type: string
description: ID of the user/guest who created the prompt
accountId:
$ref: '#/components/schemas/type_commons_AccountId'
environmentId:
$ref: '#/components/schemas/type_commons_EnvironmentId'
spaceId:
$ref: '#/components/schemas/type_commons_SpaceId'
promptType:
$ref: '#/components/schemas/type_assistant_PromptTypeEnum'
description: Type of prompt
prompt:
type: string
description: Text for prompts for AI Assist
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
deletedAt:
type: string
format: date-time
required:
- id
- createdById
- accountId
- promptType
- prompt
- createdAt
- updatedAt
title: Prompt
type_assistant_PromptTypeQueryEnum:
type: string
enum:
- ALL
- AI_ASSIST
- CONSTRAINT_GENERATION
title: PromptTypeQueryEnum
type_commons_AccountId:
type: string
description: Account ID
title: AccountId
type_commons_PromptId:
type: string
description: Prompt ID
title: PromptId
type_assistant_PromptResponse:
type: object
properties:
data:
$ref: '#/components/schemas/type_assistant_Prompt'
required:
- data
title: PromptResponse
type_commons_Pagination:
type: object
properties:
currentPage:
type: integer
description: current page of results
pageCount:
type: integer
description: total number of pages of results
totalCount:
type: integer
description: total available results
required:
- currentPage
- pageCount
- totalCount
description: pagination info
title: Pagination
type_assistant_PromptTypeEnum:
type: string
enum:
- AI_ASSIST
- CONSTRAINT_GENERATION
title: PromptTypeEnum
type_assistant_PromptPatch:
type: object
properties:
prompt:
type: string
required:
- prompt
description: Update a prompts
title: PromptPatch
type_commons_Success:
type: object
properties:
data:
$ref: '#/components/schemas/type_commons_SuccessData'
description: Informs whether or not a request was successful
title: Success
type_commons_SuccessData:
type: object
properties:
success:
type: boolean
required:
- success
title: SuccessData
type_commons_EnvironmentId:
type: string
description: Environment ID
title: EnvironmentId
securitySchemes:
default:
type: http
scheme: bearer