File
This object represents files hosted on Stripe's servers. You can upload files with the [create file](https://stripe.com/docs/api#create_file) request (for example, when uploading dispute evidence). Stripe also creates files independently (for example, the results of a [Sigma scheduled query](#scheduled_queries)). Related guide: [File upload guide](https://stripe.com/docs/file-upload)
Properties
| Name | Type | Description |
|---|---|---|
| created | integer | Time at which the object was created. Measured in seconds since the Unix epoch. |
| expires_at | integernull | The file expires and isn't available at this time in epoch seconds. |
| filename | stringnull | The suitable name for saving the file to a filesystem. |
| id | string | Unique identifier for the object. |
| links | objectnull | A list of [file links](https://stripe.com/docs/api#file_links) that point at this file. |
| object | string | String representing the object's type. Objects of the same type share the same value. |
| purpose | string | The [purpose](https://stripe.com/docs/file-upload#uploading-a-file) of the uploaded file. |
| size | integer | The size of the file object in bytes. |
| title | stringnull | A suitable title for the document. |
| type | stringnull | The returned file type (for example, `csv`, `pdf`, `jpg`, or `png`). |
| url | stringnull | Use your live secret API key to download the file from this URL. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/stripe/main/json-schema/stripe-file-schema.json",
"title": "File",
"description": "This object represents files hosted on Stripe's servers. You can upload\nfiles with the [create file](https://stripe.com/docs/api#create_file) request\n(for example, when uploading dispute evidence). Stripe also\ncreates files independently (for example, the results of a [Sigma scheduled\nquery](#scheduled_queries)).\n\nRelated guide: [File upload guide](https://stripe.com/docs/file-upload)",
"x-generated": "2026-10-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/stripe-files-api-openapi.yml#/components/schemas/file",
"properties": {
"created": {
"description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
"format": "unix-time",
"type": "integer"
},
"expires_at": {
"description": "The file expires and isn't available at this time in epoch seconds.",
"format": "unix-time",
"type": [
"integer",
"null"
]
},
"filename": {
"description": "The suitable name for saving the file to a filesystem.",
"maxLength": 5000,
"type": [
"string",
"null"
]
},
"id": {
"description": "Unique identifier for the object.",
"maxLength": 5000,
"type": "string"
},
"links": {
"description": "A list of [file links](https://stripe.com/docs/api#file_links) that point at this file.",
"properties": {
"data": {
"description": "Details about each object.",
"items": {
"$ref": "#/$defs/file_link"
},
"type": "array"
},
"has_more": {
"description": "True if this list has another page of items after this one that can be fetched.",
"type": "boolean"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
"enum": [
"list"
],
"type": "string"
},
"url": {
"description": "The URL where this list can be accessed.",
"maxLength": 5000,
"pattern": "^/v1/file_links",
"type": "string"
}
},
"required": [
"data",
"has_more",
"object",
"url"
],
"title": "FileResourceFileLinkList",
"type": [
"object",
"null"
],
"x-expandableFields": [
"data"
]
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value.",
"enum": [
"file"
],
"type": "string"
},
"purpose": {
"description": "The [purpose](https://stripe.com/docs/file-upload#uploading-a-file) of the uploaded file.",
"enum": [
"account_requirement",
"additional_verification",
"business_icon",
"business_logo",
"customer_signature",
"dispute_evidence",
"document_provider_identity_document",
"finance_report_run",
"identity_document",
"identity_document_downloadable",
"pci_document",
"selfie",
"sigma_scheduled_query",
"tax_document_user_upload",
"terminal_reader_splashscreen"
],
"type": "string",
"x-stripeBypassValidation": true
},
"size": {
"description": "The size of the file object in bytes.",
"type": "integer"
},
"title": {
"description": "A suitable title for the document.",
"maxLength": 5000,
"type": [
"string",
"null"
]
},
"type": {
"description": "The returned file type (for example, `csv`, `pdf`, `jpg`, or `png`).",
"maxLength": 5000,
"type": [
"string",
"null"
]
},
"url": {
"description": "Use your live secret API key to download the file from this URL.",
"maxLength": 5000,
"type": [
"string",
"null"
]
}
},
"required": [
"created",
"id",
"object",
"purpose",
"size"
],
"type": "object",
"x-expandableFields": [
"links"
],
"x-resourceId": "file"
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/stripe-file"
curl "https://apis.io/api/v1/json-schemas?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.