How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

SWIFT LEIs API

LEI (Legal Entity Identifier) lookup and validation

SWIFT LEIs API is one of 21 APIs that SWIFT publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include LEIs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 2 JSON Schemas.

This API exposes 6 operations across 6 paths, and defines 20 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 5 base URLs: https://api.swift.com/swiftrefdata, https://sandbox.swift.com/swiftrefdata, https://api.swift.com/swiftrefdata/v4, https://sandbox.swift.com/swiftrefdata/v4, https://api-test.swift.com/swiftrefdata/v4.

6 operations 6 paths 20 schemas 6 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.swift.com/swiftrefdata
Authentication
OAuth 2.0, HTTP Bearer
Resource Areas
1

Authentication & Security 2

SWIFT LEIs API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (OAuth2) using the password flow, exposing 2 scopes. It accepts HTTP bearer tokens (opaque OAuth 2.0) (oauthBearerToken).

  • oauthBearerToken — Use the access token obtained as a result of OAuth 2.0 flows. SWIFT supports two OAuth grant types depending on the API service. JWT-Bearer grant type [RFC 752…

Paths & Operations 6

Across 6 paths, the API surfaces 6 operations — 6 GET. Each is listed below with its method, path, parameters, and response codes.

LEIs 6

LEI (Legal Entity Identifier) lookup and validation

GET
/v2/leis/{lei}
Get LEI Details
getLei 1 param → 200404
GET
/v2/leis/{lei}/validity
Validate LEI
validateLei 1 param → 200
GET
/v2/leis/{lei}/bic
Get BIC for LEI
getBicForLei 1 param → 200
GET
/leis/{lei}/bic
Get the BIC for an LEI
getBicFromLei 1 param → 200400401404405406default
GET
/leis/{lei}/validity
Check validity of a LEI
getLeiValidity 1 param → 200400401404405406default
GET
/leis/{lei}
Get details of a LEI
getLeiDetails 1 param → 200401404405406default

Schemas 20

The contract defines 20 schemas that model the data the API accepts and returns. The most detailed are LeiDetails_3 (14 properties), LeiDetails_2 (14 properties), Address2 (5 properties), Error (5 properties). Each schema is shown below with its type and property counts.

ValidityResult
object
3 properties
LeiDetails
object
4 properties
Bic
string
Bank Identifier Code - ISO 9362
LeiBic
object
1 property 1 required
Errors
object
1 property 1 required
CountryName
AddressLine
City
StringMax20
string
Generic string definition, from 1 to 20 characters long
EntityName
string
Legal entity name
LeiValidity
object
2 properties 2 required
Lei
string
Legal Entity Identifier - ISO 17442
StringMax70
string
Generic string definition, from 1 to 70 characters long
Error
object
Custom error schema to support detailed error message.
5 properties 3 required
LeiDetails_2
object
14 properties 2 required
StringMax255
string
Generic string definition, from 1 to 255 characters long
StringMax140
string
Generic string definition, from 1 to 140 characters long
Address2
object
5 properties 1 required
PostalCode
string
Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail
LeiDetails_3
object
14 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

swift-leis-api-openapi.yml Raw ↑

Other APIs SWIFT publishes across the network.

Payment Pre-validation API
Transaction Screening API
SWIFT Account Numbers API
SWIFT BBANs API
SWIFT BICs API
SWIFT Country Codes API
SWIFT Currency Codes API
SWIFT National IDs API
SWIFT IBANs API
SWIFT Account Information API
SWIFT Distributions API
SWIFT Fileact API
Where this information came from

This is an independent, third-party profile of SWIFT LEIs API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.