Skip to content

Xero Files API API

by xero.com

OAuthHTTPSFinance
Open documentation ↗

Overview

These endpoints are specific to Xero Files API

Xero Files API is a finance API from xero.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 16 endpoints.

At a glance

Authentication
OAuth
HTTPS
Yes
CORS
Unknown
Category
Finance
Base URL
https://api.xero.com/files.xro/1.0/
Version
2.9.4
Endpoints
16
Spec updated
2021-02-25

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.xero.com/files.xro/1.0/Files" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const response = await fetch("https://api.xero.com/files.xro/1.0/Files", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.xero.com/files.xro/1.0/Files",
    headers={
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/Associations/{ObjectId}Retrieves an association object using a unique object ID
GET/FilesRetrieves files
POST/FilesUploads a File
GET/Files/{FileId}Retrieves a file by a unique file ID
PUT/Files/{FileId}Update a file
DELETE/Files/{FileId}Deletes a specific file
GET/Files/{FileId}/AssociationsRetrieves a specific file associations
POST/Files/{FileId}/AssociationsCreates a new file association
DELETE/Files/{FileId}/Associations/{ObjectId}Deletes an existing file association
GET/Files/{FileId}/ContentRetrieves the content of a specific file
GET/FoldersRetrieves folders
POST/FoldersCreates a new folder
GET/Folders/{FolderId}Retrieves specific folder by using a unique folder ID
PUT/Folders/{FolderId}Updates an existing folder
DELETE/Folders/{FolderId}Deletes a folder
GET/InboxRetrieves inbox folder

Questions

Does the Xero Files API API need an API key?

Yes. The Xero Files API API uses OAuth authentication; the documentation explains how to get credentials.

Does the Xero Files API API support HTTPS?

Yes, the Xero Files API API is served over HTTPS.

How many endpoints does the Xero Files API API have?

Its OpenAPI description lists 16 endpoints in version 2.9.4. All of them are shown on this page.

What are alternatives to the Xero Files API API?

Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.

Compare alternatives →

Listed from APIs.guru (CC0).