Fence Documents API
Register supporting documents and inspect upload status.
Register supporting documents and inspect upload status.
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/fence:fence-documents-api"
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.
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: 3.2.0
info:
title: Fence Partner Integration Documents API
version: '2.0'
description: Machine-readable contract for the Fence API operations documented for integration partners. Access requires credentials provisioned by Fence during onboarding. Deal-specific asset fields are agreed separately and remain explicitly extensible in this contract. The current public API uses the /v2 major-version path. Compatible additive changes may be introduced within a major version; a change that breaks a documented integration requires a new major version. No operation in this description is currently announced for deprecation.
contact:
name: Fence
url: https://fence.finance/contact/
email: hello@fence.finance
servers:
- url: https://dev-api.fence.finance
description: Sandbox API for integration testing. Requires sandbox credentials provisioned by Fence.
- url: https://api.fence.finance
description: Production API. Requires production credentials provisioned by Fence.
security:
- OAuth2ClientCredentials: []
tags:
- name: Documents
description: Register supporting documents and inspect upload status.
paths:
/v2/{deal_id}/documents:
parameters:
- $ref: '#/components/parameters/DealId'
get:
tags:
- Documents
operationId: getDocumentUploadStatuses
summary: Get document upload statuses
description: Retrieve upload status and, for pending uploads, a fresh presigned URL for selected documents.
parameters:
- name: document_external_ids
in: query
required: true
description: Comma-separated external document identifiers.
schema:
type: string
minLength: 1
responses:
'200':
description: Matching document upload statuses.
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentsResponse'
'401':
description: A valid bearer access token is required.
headers:
WWW-Authenticate:
description: Bearer authentication challenge.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'403':
description: The client is not authorized for this deal or action.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'404':
description: The requested deal or resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'422':
description: The request did not satisfy validation rules.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'500':
description: An unexpected server error occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
post:
tags:
- Documents
operationId: registerDocuments
summary: Register documents for upload
description: Register one or more supporting documents and receive presigned URLs for uploading their files.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterDocumentsRequest'
responses:
'201':
description: Documents registered for upload.
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentsResponse'
'401':
description: A valid bearer access token is required.
headers:
WWW-Authenticate:
description: Bearer authentication challenge.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'403':
description: The client is not authorized for this deal or action.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'404':
description: The requested deal or resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'422':
description: The request did not satisfy validation rules.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
'500':
description: An unexpected server error occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/HttpError'
components:
parameters:
DealId:
name: deal_id
in: path
required: true
description: Fence deal identifier provisioned for the target environment.
schema:
type: string
format: uuid
schemas:
ValidationIssue:
type: object
additionalProperties: true
properties:
loc:
type: array
items:
oneOf:
- type: string
- type: integer
msg:
type: string
type:
type: string
Document:
type: object
additionalProperties: false
required:
- document_external_id
properties:
document_external_id:
type: string
presigned_url:
type:
- string
- 'null'
format: uri
expires_at:
type:
- string
- 'null'
format: date-time
uploaded_at:
type:
- string
- 'null'
format: date-time
RegisterDocumentsRequest:
type: object
additionalProperties: false
required:
- documents
properties:
documents:
type: array
items:
$ref: '#/components/schemas/DocumentInput'
DocumentsResponse:
type: object
additionalProperties: false
required:
- documents
properties:
documents:
type: array
items:
$ref: '#/components/schemas/Document'
DocumentInput:
type: object
additionalProperties: false
required:
- document_category
- document_external_id
- file_name_with_ext
properties:
document_category:
type: string
minLength: 1
document_external_id:
type: string
minLength: 1
file_name_with_ext:
type: string
pattern: ^.+\.[^./]+$
description: File name including its extension.
title:
type:
- string
- 'null'
HttpError:
type: object
additionalProperties: true
required:
- detail
properties:
detail:
oneOf:
- type: string
- type: array
items:
$ref: '#/components/schemas/ValidationIssue'
- type: object
additionalProperties: true
securitySchemes:
OAuth2ClientCredentials:
type: oauth2
description: OAuth 2.0 Client Credentials grant for server-to-server integrations. Fence provisions credentials separately for each environment.
flows:
clientCredentials:
tokenUrl: /v1/login/access-token
scopes: {}
externalDocs:
description: Fence API Client Integration Guide
url: https://docs.fence.finance/