Flatfile subpackage_snapshots API
The subpackage_snapshots API from Flatfile — 4 operation(s) for subpackage_snapshots.
The subpackage_snapshots API from Flatfile — 4 operation(s) for subpackage_snapshots.
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-snapshots-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 Snapshots API
version: 1.0.0
servers:
- url: https://api.x.flatfile.com/v1
tags:
- name: subpackage_snapshots
paths:
/snapshots:
post:
operationId: create-snapshot
summary: Create a snapshot
description: Creates a snapshot of a sheet
tags:
- subpackage_snapshots
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_snapshots_SnapshotResponse'
'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:
type: object
properties:
sheetId:
$ref: '#/components/schemas/type_commons_SheetId'
description: ID of sheet
label:
type: string
description: Label for the snapshot
threadId:
type: string
description: ID of thread to associate with the snapshot
required:
- sheetId
get:
operationId: list-snapshots
summary: List snapshots
description: List all snapshots of a sheet
tags:
- subpackage_snapshots
parameters:
- name: sheetId
in: query
description: ID of sheet
required: true
schema:
$ref: '#/components/schemas/type_commons_SheetId'
- name: threadId
in: query
description: ID of thread to filter snapshots by
required: false
schema:
type: string
- 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_snapshots_SnapshotsResponse'
'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'
/snapshots/{snapshotId}:
get:
operationId: get-snapshot
summary: Get a snapshot
description: Gets a snapshot of a sheet
tags:
- subpackage_snapshots
parameters:
- name: snapshotId
in: path
description: ID of snapshot
required: true
schema:
$ref: '#/components/schemas/type_commons_SnapshotId'
- name: includeSummary
in: query
description: Whether to include a summary in the snapshot response
required: true
schema:
type: boolean
- 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_snapshots_SnapshotResponse'
'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'
delete:
operationId: delete-snapshot
summary: Delete a snapshot
description: Deletes a snapshot of a sheet
tags:
- subpackage_snapshots
parameters:
- name: snapshotId
in: path
description: ID of snapshot
required: true
schema:
$ref: '#/components/schemas/type_commons_SnapshotId'
- 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'
'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'
/snapshots/{snapshotId}/restore:
post:
operationId: restore-snapshot
summary: Restore a snapshot
description: Restores a snapshot of a sheet
tags:
- subpackage_snapshots
parameters:
- name: snapshotId
in: path
description: ID of snapshot
required: true
schema:
$ref: '#/components/schemas/type_commons_SnapshotId'
- 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_snapshots_SnapshotResponse'
'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_snapshots_RestoreOptions'
/snapshots/{snapshotId}/records:
get:
operationId: get-snapshot-records
summary: Get records from a snapshot
description: Gets records from a snapshot of a sheet
tags:
- subpackage_snapshots
parameters:
- name: snapshotId
in: path
description: ID of snapshot
required: true
schema:
$ref: '#/components/schemas/type_commons_SnapshotId'
- name: pageSize
in: query
description: Number of records to return in a page
required: false
schema:
type: integer
- name: pageNumber
in: query
description: Based on pageSize, which page of records to return
required: false
schema:
type: integer
- name: changeType
in: query
description: Filter records by change type
required: false
schema:
$ref: '#/components/schemas/type_snapshots_ChangeType'
- 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_records_DiffRecordsResponse'
'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_property_FieldAppearance:
type: object
properties:
size:
$ref: '#/components/schemas/type_property_FieldSize'
description: Control the appearance of this field when it's displayed in a table or input
title: FieldAppearance
type_property_StringConfigOptions:
type: string
enum:
- tiny
- normal
- medium
- long
description: How much text should be storeable in this field
title: StringConfigOptions
type_commons_Error:
type: object
properties:
key:
type: string
message:
type: string
required:
- message
title: Error
type_property_EnumPropertySortBy:
type: string
enum:
- label
- value
- ordinal
title: EnumPropertySortBy
type_snapshots_RestoreOptions:
type: object
properties:
created:
type: boolean
updated:
type: boolean
deleted:
type: boolean
required:
- created
- updated
- deleted
title: RestoreOptions
type_commons_CommitId:
type: string
description: Commit ID
title: CommitId
type_property_NumberConfig:
type: object
properties:
decimalPlaces:
type: integer
description: Number of decimal places to round data to
title: NumberConfig
type_commons_Errors:
type: object
properties:
errors:
type: array
items:
$ref: '#/components/schemas/type_commons_Error'
required:
- errors
title: Errors
type_snapshots_SnapshotsResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/type_snapshots_Snapshot'
required:
- data
title: SnapshotsResponse
type_commons_Action:
type: object
properties:
slug:
type: string
description: '**This is deprecated. Use `operation` instead.**'
operation:
type: string
description: This will become the job operation that is triggered
mode:
$ref: '#/components/schemas/type_commons_ActionMode'
description: Foreground and toolbarBlocking action mode will prevent interacting with the resource until complete
tooltip:
type: string
description: A tooltip that appears when hovering the action button
messages:
type: array
items:
$ref: '#/components/schemas/type_commons_ActionMessage'
type:
type: string
description: '**This is deprecated.**'
description:
type: string
description: The text that appears in the dialog after the action is clicked.
schedule:
$ref: '#/components/schemas/type_commons_ActionSchedule'
description: Determines if the action should happen on a regular cadence.
primary:
type: boolean
description: A primary action will be more visibly present, whether in Sheet or Workbook.
confirm:
type: boolean
description: Whether to show a modal to confirm the action
icon:
type: string
description: Icon will work on primary actions. It will only accept an already existing Flatfile design system icon.
requireAllValid:
type: boolean
description: '**This is deprecated. Use `constraints` instead.**'
requireSelection:
type: boolean
description: '**This is deprecated. Use `constraints` instead.**'
inputForm:
$ref: '#/components/schemas/type_commons_InputForm'
description: Adds an input form for this action after it is clicked.
constraints:
type: array
items:
$ref: '#/components/schemas/type_commons_ActionConstraint'
description: A limitation or restriction on the action.
mount:
$ref: '#/components/schemas/type_commons_ActionMount'
guide:
$ref: '#/components/schemas/type_commons_Guide'
guardrail:
$ref: '#/components/schemas/type_commons_Guardrail'
createdFrom:
$ref: '#/components/schemas/type_commons_ActionId'
description: The action that this action was cloned from
lastPropagatedAt:
type: string
format: date-time
description: The last time this action was propagated to a workbook
deletedAt:
type: string
format: date-time
description: The time this action was deleted
invalidConditionalMessaging:
type: boolean
description: When enabled, shows dynamic confirmation messages based on record validation status instead of the static description
validRecordsMessage:
type: string
description: Custom message to show when all records are valid (only used when invalidConditionalMessaging is true)
invalidRecordsMessage:
type: string
description: Custom message to show when there are invalid records (only used when invalidConditionalMessaging is true)
label:
type: string
description: The text on the Button itself
required:
- label
title: Action
type_snapshots_SchemaDiffData:
type: object
additionalProperties:
$ref: '#/components/schemas/type_snapshots_SchemaDiffEnum'
title: SchemaDiffData
type_records_ValidationType:
type: string
enum:
- error
- warn
- info
title: ValidationType
type_records_DiffRecord:
type: object
properties:
id:
$ref: '#/components/schemas/type_commons_RecordId'
versionId:
$ref: '#/components/schemas/type_commons_VersionId'
description: Deprecated, use `commitId` instead.
commitId:
$ref: '#/components/schemas/type_commons_CommitId'
valid:
type: boolean
description: Auto-generated value based on whether the record contains a field with an error message. Cannot be set via the API.
messages:
type: array
items:
$ref: '#/components/schemas/type_records_ValidationMessage'
description: This record level `messages` property is deprecated and no longer stored or used. Use the `messages` property on the individual cell values instead. This property will be removed in a future release.
metadata:
type: object
additionalProperties:
description: Any type
config:
$ref: '#/components/schemas/type_records_RecordConfig'
values:
$ref: '#/components/schemas/type_records_DiffData'
resolves:
type: array
items:
$ref: '#/components/schemas/type_data-clips_Resolve'
required:
- id
- values
title: DiffRecord
type_commons_VersionId:
type: string
description: Version ID
title: VersionId
type_property_EnumPropertyConfig:
type: object
properties:
allowCustom:
type: boolean
description: Permit the user to create new options for this specific field.
options:
type: array
items:
$ref: '#/components/schemas/type_property_EnumPropertyOption'
sortBy:
$ref: '#/components/schemas/type_property_EnumPropertySortBy'
description: Sort the options by the value of this property. Defaults to `label`.
required:
- options
title: EnumPropertyConfig
type_property_RequiredConstraintConfig:
type: object
properties:
message:
type: string
description: Custom validation message to display when the constraint fails
level:
$ref: '#/components/schemas/type_records_ValidationType'
description: Validation level (error, warn, info). Defaults to error.
title: RequiredConstraintConfig
type_property_ReferenceListPropertyConfig:
type: object
properties:
ref:
type: string
description: Full path reference to a sheet configuration. Must be in the same workbook.
key:
type: string
description: Key of the property to use as the reference key. Defaults to `id`
filter:
$ref: '#/components/schemas/type_property_ReferenceFilter'
description: Optional filter to narrow the set of records in the reference sheet used as valid values
required:
- ref
- key
title: ReferenceListPropertyConfig
type_commons_InputConstraint:
type: object
properties:
type:
$ref: '#/components/schemas/type_commons_InputConstraintType'
required:
- type
title: InputConstraint
type_sheets_CompositeUniqueConstraintConfig:
type: object
properties:
message:
type: string
description: Custom validation message to display when the constraint fails
level:
$ref: '#/components/schemas/type_records_ValidationType'
description: Validation level (error, warn, info). Defaults to error.
title: CompositeUniqueConstraintConfig
type_snapshots_ChangeType:
type: string
enum:
- createdSince
- updatedSince
- deletedSince
description: Options to filter records in a snapshot
title: ChangeType
type_commons_ActionId:
type: string
description: Action ID
title: ActionId
type_commons_Guardrail:
type: object
properties:
content:
type: string
description: Markdown guardrail for this action
required:
- content
title: Guardrail
type_property_BooleanPropertyConfig:
type: object
properties:
allowIndeterminate:
type: boolean
description: Allow a neither true or false state to be stored as `null`
required:
- allowIndeterminate
title: BooleanPropertyConfig
type_commons_RecordId:
type: string
description: Record ID
title: RecordId
type_sheets_SheetAccess:
type: string
enum:
- '*'
- add
- edit
- delete
- import
title: SheetAccess
type_property_StringConfig:
type: object
properties:
size:
$ref: '#/components/schemas/type_property_StringConfigOptions'
required:
- size
title: StringConfig
type_commons_ActionMessageType:
type: string
enum:
- error
- info
title: ActionMessageType
type_property_Constraint:
oneOf:
- type: object
properties:
type:
type: string
enum:
- required
description: 'Discriminator value: required'
config:
$ref: '#/components/schemas/type_property_RequiredConstraintConfig'
required:
- type
- type: object
properties:
type:
type: string
enum:
- unique
description: 'Discriminator value: unique'
config:
$ref: '#/components/schemas/type_property_UniqueConstraintConfig'
required:
- type
- type: object
properties:
type:
type: string
enum:
- computed
description: 'Discriminator value: computed'
required:
- type
- type: object
properties:
type:
type: string
enum:
- external
description: 'Discriminator value: external'
validator:
type: string
description:
type: string
description: A full description of what this constraint configuration does
label:
type: string
description: A short description of what this constraint constraint should do, example - values between 1 and 100
config:
description: Any type
required:
- type
- validator
- type: object
properties:
type:
type: string
enum:
- stored
description: 'Discriminator value: stored'
validator:
type: string
description: Must match the constraint validator name.
version:
type: integer
description: The version of the stored constraint to use. (Defaults to version 1.)
description:
type: string
description: A full description of what this constraint configuration does
label:
type: string
description: A short description of what this constraint constraint should do, example - values between 1 and 100
config:
description: Any type
required:
- type
- validator
discriminator:
propertyName: type
title: Constraint
type_sheets_CompositeUniqueConstraintStrategy:
type: string
enum:
- hash
- concat
title: CompositeUniqueConstraintStrategy
type_property_ReferenceFilter:
type: object
properties:
refField:
type: string
description: The field key of the reference sheet to filter with
recordField:
type: string
description: The field key of the record used to filter the reference field
required:
- refField
- recordField
description: If provided, the reference filter will narrow the set of records in the reference sheet used as the set of valid values for the record. Only rows where the value in the reference sheet's refField matches the value in this record's recordField will be used.
title: ReferenceFilter
type_data-clips_ResolveTo:
type: string
enum:
- clip
- main
- snapshot
title: ResolveTo
type_property_Property:
oneOf:
- type: object
properties:
type:
type: string
enum:
- string
description: 'Discriminator value: string'
key:
type: string
label:
type: string
description: User friendly field name
description:
type: string
description: A short description of the field. Markdown syntax is supported.
constraints:
type: array
items:
$ref: '#/components/schemas/type_property_Constraint'
description: A list of constraints that should be applied to this field. This is limited to a maximum of 10 constraints and all external and stored constraints must have unique validator values.
readonly:
type: boolean
appearance:
$ref: '#/components/schemas/type_property_FieldAppearance'
actions:
type: array
items:
$ref: '#/components/schemas/type_commons_Action'
description: An array of actions that end users can perform on this Column.
metadata:
description: Useful for any contextual metadata regarding the schema. Store any valid json here.
treatments:
type: array
items:
type: string
description: A unique presentation for a field in the UI.
alternativeNames:
type: array
items:
type: string
config:
$ref: '#/components/schemas/type_property_StringConfig'
required:
- type
- key
- type: object
properties:
type:
type: string
enum:
- number
description: 'Discriminator value: number'
key:
type: string
label:
type: string
description: User friendly field name
description:
type: string
description: A short description of the field. Markdown syntax is supported.
constraints:
type: array
items:
$ref: '#/components/schemas/type_property_Constraint'
description: A list of constraints that should be applied to this field. This is limited to a maximum of 10 constraints and all external and stored constraints must have unique validator values.
readonly:
type: boolean
appearance:
$ref: '#/components/schemas/type_property_FieldAppearance'
actions:
type: array
items:
$ref: '#/components/schemas/type_commons_Action'
description: An array of actions that end users can perform on this Column.
metadata:
description: Useful for any contextual metadata regarding the schema. Store any valid json here.
treatments:
type: array
items:
type: string
description: A unique presentation for a field in the UI.
alternativeNames:
type: array
items:
type: string
isArray:
type: boolean
description: Will allow multiple values and store as an array. Use enum-list type instead.
config:
$ref: '#/components/schemas/type_property_NumberConfig'
required:
- type
- key
- type: object
properties:
type:
type: string
enum:
- boolean
description: 'Discriminator value: boolean'
key:
type: string
label:
type: string
description: User friendly field name
description:
type: string
description: A short description of the field. Markdown syntax is supported.
constraints:
type: array
items:
$ref: '#/components/schemas/type_property_Constraint'
description: A list of constraints that should be applied to this field. This is limited to a maximum of 10 constraints and all external and stored constraints must have unique validator values.
readonly:
type: boolean
appearance:
$ref: '#/components/schemas/type_property_FieldAppearance'
actions:
type: array
items:
$ref: '#/components/schemas/type_commons_Action'
description: An array of actions that end users can perform on this Column.
metadata:
description: Useful for any contextual metadata regarding the schema. Store any valid json here.
treatments:
type: array
items:
type: string
description: A unique presentation for a field in the UI.
alternativeNames:
type: array
items:
type: string
config:
$ref: '#/components/schemas/type_property_BooleanPropertyConfig'
required:
- type
- key
- type: object
properties:
type:
type: string
enum:
- date
description: 'Discriminator value: date'
key:
type: string
label:
type: string
description: User friendly field name
description:
type: string
description: A short description of the field. Markdown syntax is supported.
constraints:
type: array
items:
$ref: '#/components/schemas/type_property_Constraint'
description: A list of constraints that should be applied to this field. This is limited to a maximum of 10 constraints and all external and stored constraints must have unique validator values.
readonly:
type: boolean
appearance:
$ref: '#/components/schemas/type_property_FieldAppearance'
actions:
type: array
items:
$ref: '#/components/schemas/type_commons_Action'
description: An array of actions that end users can perform on this Column.
metadata:
description: Useful for any contextual metadata regarding the schema. Store any valid json here.
treatments:
type: array
items:
type: string
description: A unique presentation for a field in the UI.
alternativeNames:
type: array
items:
type: string
required:
- type
- key
- type: object
properties:
type:
type: string
enum:
- enum
description: 'Discriminator value: enum'
key:
type: string
label:
type: string
description: User friendly field name
description:
type: string
description: A short description of the field. Markdown syntax is supported.
constraints:
type: array
items:
$ref: '#/components/schemas/type_property_Constraint'
description: A list of constraints that should be applied to this field. This is limited to a maximum of 10 constraints and all external and stored constraints must have unique validator values.
readonly:
type: boolean
appearance:
$ref: '#/components/schemas/type_property_FieldAppearance'
actions:
type: array
items:
$ref: '#/components/schemas/type_commons_Action'
description: An array of actions that end users can perform on this Column.
metadata:
description: Useful for any contextual metadata regarding the schema. Store any valid json here.
treatments:
type: array
items:
type: string
description: A unique presentation for a field in the UI.
alternativeNames:
type: array
items:
type: string
isArray:
type: boolean
description: Will allow multiple values and store as an array. Use enum-list type instead.
multi:
type: boolean
description: Will allow multiple values and store / provide the values in an array if set. Not all field types support arrays. Use enum-list type instead.
config:
$ref: '#/components/schemas/type_property_EnumPropertyConfig'
required:
- type
- key
- config
- type: object
properties:
type:
type: string
enum:
- reference
description: 'Discriminator value: reference'
key:
type: string
label
# --- truncated at 32 KB (58 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/flatfile/refs/heads/main/openapi/flatfile-subpackage-snapshots-api-openapi.yml