API reference
Addresses
/addresses — the PATH membership addresses are issued under, subjects with their identifiers and aliases, and PATH addresses with their rails, their terms and their pledges.
Scope addresses.
https://api.pathglobal.finance/addressesA subject is a client of yours, a person or a legal entity, whose identity Proof verifies. A
PATH address is issued to a verified subject. A caller reaches its own subjects and
addresses only; another client's answer 404 pathglobal.core.not_found.
Path Global is the PATH member path-global for the subjects and addresses it manages. A verified
subject is a subject of the PATH network. An address, its receive targets and its pledges are
published on the PATH network. In test mode they are published on the test network of the key,
under the same rules.
Membership
GET /membership · PUT /membership
The PATH membership addresses are issued under: { "mode": "hosted" }, Path Global's. A change
applies to the addresses issued from then on.
{ "mode": "own", "member", "network" }, a membership of your own, requires a proof of membership,
which this version does not take: PUT /membership with mode: "own" answers
409 pathglobal.addresses.membership_unverified. An address issued under a membership of your own
keeps resolving; no address, endpoint, alias or connection is issued under it, and each such call answers
the same 409.
Subjects
POST /subjects
Takes Idempotency-Key.
{ "type": "legal_entity", "name": "Example Treasury Ltd", "country": "GB", "reference": "cust-0042" }| Field | Required | Notes |
|---|---|---|
type | yes | individual or legal_entity |
name | yes | 2 to 140 characters |
country | no | ISO 3166 alpha-2 |
reference | no | Your own id, up to 64 characters |
201 with the subject. In the sandbox an unknown client is verified with verdict sandbox.
| Field | Notes |
|---|---|
identity | { status, verdict, checked_at }, status verified, review or rejected |
path_subject | The subject on the PATH network, once its identity is verified |
attestation | { reference, claim, value, expires_at }: the attestation of its level of verification on the PATH network, while it is verified |
identifiers[] | { id, identifier_type, discoverability, verified, registered_at }: the identifiers registered for it. The value of an identifier is not in the subject |
aliases[] | { alias, display, network, address, issued_at, ref, discoverability }: its alias in each network; ref is the alias on the PATH network |
withdrawn_at | When it withdrew from discovery |
A verified subject is written to the PATH network with its type only (natural_person for an
individual, legal_entity), and with its payee record, the name a payee check compares. A
verdict pass is attested on the PATH network: claim kyc_level for an individual, kyb_level for
a legal entity, value basic, for 365 days from the check. A later verdict replaces the
attestation; a rejected subject has none. A subject is created whether the PATH network answers
or not, and is written to it later.
GET /subjects · GET /subjects/:id
{ "subjects": [ … ] }, by ?reference= when given; one subject answers with its addresses.
POST /subjects/:id/verify
{ "verdict"? }. Runs the identity check again, or records a verdict decided in
Proof.
POST /subjects/:id/identifiers
Registers an identifier of a verified subject on the PATH network. Takes Idempotency-Key.
{ "identifier_type": "email", "identifier": "[email protected]", "verification_method": "email_link", "discoverability": "network" }| Field | Required | Notes |
|---|---|---|
identifier_type | yes | phone, email, bank_account, lei, reg or tax |
identifier | yes | 1 to 256 characters |
verification_method | no | How you verified it: otp_sms, otp_email, email_link, micro_deposit, payee_name_check or registry_lookup |
discoverability | no | private, network, federated or public. Absent: the default of the PATH network for its type |
201 with the subject. The identifier is passed to the PATH network and is not kept by Path Global:
the subject lists its type, its discoverability and whether it is verified. A subject that is not
verified answers 422 pathglobal.addresses.subject_not_verified. A subject that withdrew from
discovery registers it private.
Idempotency-Key covers the type, the method and the discoverability, not the value: a request sent
again under the same key answers the first answer, whatever its identifier. A request sent again
under the same key after a 503 is written under the same key on the PATH network.
POST /subjects/:id/withdraw
Withdraws the subject from discovery on the PATH network. Every identifier and alias of the subject
reads discoverability: "private" from then on; the subject carries withdrawn_at. Its addresses,
endpoints and history stay. Answers the subject.
Aliases
An alias is a readable name a network issues to a subject (PIP-0017):
alias:<network>:<name>, shown @name. It points at a directory address of the subject and
resolves to it; it does not replace it. A payer looks it up at the holding member with RESOLVER by
alias (PIP-0028; the Path Tool resolver_lookup), and a route pays it as the address it
designates (Router).
POST /subjects/:id/alias
{ "name": "Example.Treasury", "address": "addr_…", "discoverability": "network" }| Field | Required | Notes |
|---|---|---|
name | yes | In any case, read in lower case: 3 to 32 of a-z, 0-9, . and _, starting and ending with a letter or a digit, with no two separators in a row |
address | no | An active address of the subject, of the directory profile. Absent: its first directory address |
discoverability | no | network, federated or private. Absent: the network's default. RESOLVER does not answer a private alias |
Answers the subject, its alias in the network of its member stored in lower case. A subject that
withdrew from discovery claims it private. A name that does
not follow the rule answers 400 pathglobal.core.malformed_request. Separators are not significant
when names are compared: example.treasury and example_treasury are one name.
| Rule | Answer |
|---|---|
| One alias per subject per network. Claiming the name it holds answers the subject as it is | Another name while one is held: 409 pathglobal.addresses.alias_held. Release it first |
| A name is held by one subject of a network, and some names are not issued | A name that cannot be issued: 409 pathglobal.addresses.alias_unavailable. The answer does not say why |
| A network limits how many alias changes a subject makes in a year | 409 pathglobal.addresses.alias_change_limit |
An alias points at a directory address issued under a network | 422 pathglobal.addresses.alias_unavailable |
In test mode a released name is not issued again for 90 days, and a subject makes at most two alias changes in 365 days after its first alias.
DELETE /subjects/:id/alias/:network
Releases the alias of that network. Answers the subject with
released: { alias, quarantine_days }: the days during which the network does not issue the name
again.
POST /subjects/:id/alias/:network/transfer
{ "to_member": "another-member" }Transfers the alias of that network to another member of the network, which registers it for the
subject from then on (PIP-0017). The subject here does not hold the alias after the
transfer; its addresses and endpoints stay. Answers the subject. A subject with no alias in that
network answers 404 pathglobal.core.not_found.
PATH addresses
POST /
Takes Idempotency-Key.
{ "subject": "sub_…", "profile": "directory", "label": "Main", "discoverability": "network" }profile is directory or relationship (default). discoverability is private, network or
public; absent, the default of the PATH network. 201 with the address, its endpoints, its rails
and what it accepts now. An address starts on derived terms.
Sent again under the same Idempotency-Key after a 503, the request answers the address the PATH
network issued the first time. Sent again without a key, it may leave on the PATH network an address
that Path Global does not list.
An address issued before 0.15.1 is not on the PATH network: its rails read published: false and it
has no receive target. Rotating it issues its successor on the PATH network.
GET / · GET /:id
{ "addresses": [ … ] }, by ?subject= when given; or one address with endpoints, rails,
accepts, terms, commitment and sync.
| Field | Notes |
|---|---|
kind | pathglobal.address: the record of Path Global for the address |
address | The PATH address |
member | { mode, slug, network? } it was issued under |
discoverability | Who may discover it on the PATH network, when given |
status | active or revoked |
previous | The addresses it replaced, with revoked_at |
switches | The rails turned off |
terms | derived or pledged; see Terms |
accepts | What it accepts now: PATH capabilities, in order of preference on pledged terms |
commitment | The PATH commitment of its latest pledge; null on derived terms |
accepts_version | The latest pledged version |
sync | done; owed while the PATH network does not hold its latest targets or pledge yet, brought in step without a call; refused when the PATH network refused a write of the address, written again at its next change |
sync_error | With sync: "refused": the PATH code of the refusal |
rails[] | See below |
| Rail field | Notes |
|---|---|
network, asset | The rail: one network and one asset an endpoint of the address receives |
enabled | On or off |
endpoints, anchored | The endpoints that receive it, and whether one of them is anchored to what takes the asset |
capability | The PATH capability of the rail: { rail, asset_type, asset_code }, and for a token chain, standard and contract. null for a rail the PATH network has no capability for |
published | A receive target of the address on the PATH network delivers this capability |
publish_error | Why an endpoint that is on and anchored has no target: beneficiary_fields, a field its format requires is missing; memo, the rail carries no memo |
pledged | On pledged terms, whether the latest pledge names the capability; null on derived terms |
accepted | Whether the address accepts the rail now |
Receive targets
Each endpoint of the address, for each rail that is on, anchored and has a capability, is a receive target of the address on the PATH network. The targets follow the endpoints, their anchors and the rails: an endpoint added or anchored adds its targets; an endpoint removed or released, or a rail turned off, revokes them. The oldest endpoint of a capability is its default target. A target names the endpoint by its id; it carries what the payer sends:
| Endpoint | Target |
|---|---|
| A wallet address or a virtual address | The address, in lower case on an EVM chain |
| An address with a memo | No target: the rail carries no memo (publish_error: "memo") |
An identifier whose format the rail lists (an IBAN on sepa-inst) | The identifier, the fields the payer sends with it, and the holder name: the endpoint's holder_name, else the subject's name |
| Any other | A target with no beneficiary |
A change to an endpoint, an anchor or a rail applies when the PATH network does not answer; the
address reads sync: "owed" until the network holds it. When the PATH network refuses it, the
address reads sync: "refused" with sync_error, and the next change of the address, its
endpoints, their anchors or its rails writes it again.
Terms
| Terms | What the address accepts | Commitment |
|---|---|---|
derived | The capabilities of its targets: every rail that is on and anchored and has a target | null. Nothing is pledged and no version is signed |
pledged | The entries of its latest pledge that it still receives, in the order of the pledge | The PATH commitment of the latest pledge |
PUT /:id/accepts
Pledges what the address accepts.
{
"accepts": [
{ "network": "sepa-inst", "asset": "EUR", "limits": { "max_single": { "value": "10000.00", "asset": "EUR" } } },
{ "network": "swift", "asset": "EUR" }
]
}| Field | Notes |
|---|---|
accepts | 1 to 64 entries, in order of preference |
accepts[].network, accepts[].asset | A rail of the address that is on, anchored and published |
accepts[].limits | { min_single?, max_single? }: amounts per payment, in the asset of the rail |
accepts[].reference_required | true: a payment names a reference. Only on a rail that carries a payment reference |
Signs version n+1 and publishes it on the PATH network; the address is on pledged terms from then
on. Answers the address. After a pledge, the rails of a new endpoint read pledged: false and
accepted: false until a later pledge names them. A deposit outside the limits of its capability is
returned (Deposits).
| Request | Answer |
|---|---|
| An entry that is not a rail of the address on, anchored and published | 422 pathglobal.addresses.rail_not_on_address, details.index |
Two entries for one capability, limits in another asset, min_single above max_single, reference_required on a rail with no payment reference | 400 pathglobal.core.malformed_request, details.field |
| A revoked address | 409 pathglobal.addresses.revoked |
A pledge is narrowed when a capability it names stops being received (its last target is revoked, or its rail is turned off): a new version without it is signed and published. When no entry would remain, no version is signed: the last version stays, and no rail is accepted.
GET /:id/accepts
{ "versions": [ … ] }: every pledged version of the address, newest first, each a record of Path
Global, signed:
| Field | Notes |
|---|---|
kind | pathglobal.standing_intent |
address, path_address | The address and the PATH address the version was signed for |
version, grammar | The version, and grammar: 2 |
accepts | PATH capabilities in order of preference, each with its limits and reference_required |
limits | Limits across capabilities; {} |
commitment | The PATH commitment of the address: the SHA-256 of the canonical JSON of { grammar, address, accepts, limits } |
A version without grammar is listed as it was signed. A payer reads what the address accepts with
RESOLVER (Path Tools), as a resolver_answer, and asks the payment
instruction of one capability with instruction_issue: it names the receive target of that
capability. The router pays an address of Path Global the same way
(Router).
POST /:id/rails
{ "network", "asset"?, "enabled" }: turns a rail on or off, for one asset or for every asset it
carries. On derived terms a rail turned on adds its targets; on pledged terms the pledge does not
change, and a rail turned off narrows it. Answers the address.
POST /:id/rotate · POST /:id/revoke
rotate replaces the address: the one before is revoked and kept in previous; endpoints, rails and
anchors stay. The targets are set again on the new address, and a pledge is signed again for it.
revoke revokes the address. Both answer the address. A revoked address answers
409 pathglobal.addresses.revoked to rotate and PUT /:id/accepts.
Revoked and replaced addresses
A payment to an address that is revoked or replaced is refused, and the answer never names another address: the payer asks the payee for its current one.
| Address | Quote or route | Path Tools (PIP-0027) |
|---|---|---|
| Revoked | 410 pathglobal.addresses.revoked, details: { address, rotated: false } | 410 pathglobal.tools.refused, details.path_code: "path.address.revoked", details.path_detail: { rotated: false } |
| Replaced by rotation | 410 pathglobal.addresses.moved, details: { address } | The same, with details.path_detail: { rotated: true } |
details.address is the address the request named.
Errors
| Code | Status | When |
|---|---|---|
pathglobal.addresses.subject_not_verified | 422 | The subject's identity is not verified |
pathglobal.addresses.alias_held | 409 | The subject holds an alias in that network |
pathglobal.addresses.alias_unavailable | 409, 422 | The name is not available, or the address cannot carry an alias |
pathglobal.addresses.alias_change_limit | 409 | The subject has made the alias changes the network allows in a year |
pathglobal.addresses.revoked | 409, 410 | A write to a revoked address (409); a payment to a revoked address (410) |
pathglobal.addresses.moved | 410 | A payment to an address its holder replaced |
pathglobal.addresses.rail_not_on_address | 422 | The address does not carry that rail, or a pledge names a rail that is not on, anchored and published |
pathglobal.addresses.membership_unverified | 409 | A membership of your own requires a proof of membership, not available in this version |
pathglobal.addresses.registrar_unavailable | 503 | The PATH network did not take the write. Send the same request again |