Xero OAuth 2 Identity Service API
xero · Finance
These endpoints are related to managing authentication tokens and identity for Xero API
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Retrieves the connections for this user
Override the base server url that include version
https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections?authEventId=example
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections?authEventId=example"
import requests
params = {
"authEventId": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections');
url.searchParams.set('authEventId', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections")
q := baseURL.Query()
q.Set("authEventId", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections")
uri.query = URI.encode_www_form({
"authEventId" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections?" . http_build_query([
"authEventId" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
DELETE
Deletes a connection for this user (i.e. disconnect a tenant)
Override the base server url that include version
https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections/{id}
Hover any highlighted part to learn what it does
curl -X DELETE "https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections/{id}"import requests
response = requests.delete(
"https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections/{id}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections/{id}';
const response = await fetch(url, {
method: 'DELETE',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections/{id}"
req, _ := http.NewRequest("DELETE", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections/{id}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Delete.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/xero.com/xero-identity/2.9.4/Connections/{id}";
$opts = ["http" => [
"method" => "DELETE",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Xero OAuth 2 Identity Service API?
Xero OAuth 2 Identity Service API is a Finance API. Developers commonly use finance APIs for:
- processing payments and handling transactions
- building subscription and billing systems
- automating invoicing and financial reporting
- fraud detection and risk scoring
- connecting to banking and accounting software
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Xero OAuth 2 Identity Service API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide