# Gas station (obsolete)

Deprecated legacy singular `/v1/domain/...` paths. Use the canonical `/v1/domains/...` routes instead; these are kept only for backward compatibility.

## Get sponsor configuration for an account (deprecated)

 - [GET /v1/domain/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorcontroller_getsponsor_legacydomain.md)

## Create a sponsor configuration (deprecated)

 - [POST /v1/domain/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorcontroller_createsponsor_legacydomain.md)

## Update a sponsor configuration (deprecated)

 - [PUT /v1/domain/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorcontroller_updatesponsor_legacydomain.md)

## Delete a sponsor configuration (deprecated)

 - [DELETE /v1/domain/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorcontroller_deletesponsor_legacydomain.md)

## List all sponsor (gas station) accounts in a domain (deprecated)

 - [GET /v1/domain/{domainId}/sponsors](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorscontroller_listsponsors_legacydomain.md)

## Find which gas station sponsors a specific account (deprecated)

 - [GET /v1/domain/{domainId}/sponsors/account/{accountId}/sponsor](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorscontroller_getaccountsponsor_legacydomain.md): Returns the sponsorship status for the given account, following the sponsorship hierarchy: 1) Domain-level sponsor for the account domain, 2) Parent domain sponsors (if includeSubDomains=true), 3) Account-level sponsor. Returns isSponsored=false if no sponsor is found.

## List gas stations that could sponsor a specific account (deprecated)

 - [GET /v1/domain/{domainId}/sponsors/account/{accountId}/valid-sponsors](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorscontroller_getvalidsponsors_legacydomain.md): Returns the gas stations that could be chosen as sponsor for the given account: every sponsor in the account domain or one of its ancestor domains, excluding the account itself. If the account is already effectively sponsored, returns isSponsored=true with the existing sponsor and an empty items list (an entity is only sponsored once), unless includeAll=true, in which case items still lists the lineage candidates (the current sponsor may appear among them).

## Resolve domain-wide sponsorship for a domain (deprecated)

 - [GET /v1/domain/{domainId}/sponsors/domain-sponsor](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorscontroller_getdomainsponsor_legacydomain.md): Returns whether the domain is sponsored domain-wide, without requiring an account ID. Resolution follows the sponsorship hierarchy: 1) Domain-level sponsor for the domain itself, 2) Parent domain sponsors that have includeSubDomains=true. Account-level sponsorships are NOT considered. Returns isSponsored=false if no domain-wide sponsor is found.

## List accounts in a domain with their sponsorship status (deprecated)

 - [GET /v1/domain/{domainId}/sponsors/sponsored-accounts](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorscontroller_listsponsoredaccounts_legacydomain.md): Returns all accounts within the domain along with whether each account is currently sponsored by a Gas Station.

## List sub-domains in a domain with their sponsorship status (deprecated)

 - [GET /v1/domain/{domainId}/sponsors/sponsored-domains](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorscontroller_listsponsoreddomains_legacydomain.md): Returns all sub-domains within the domain along with whether each sub-domain is currently sponsored by a Gas Station.

## List sponsorable domains (deprecated)

 - [GET /v1/domain/{domainId}/account/{entityId}/sponsorable-domains](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorlistcontroller_getsponsorabledomains_legacydomain.md)

## Add sponsored domains (deprecated)

 - [POST /v1/domain/{domainId}/account/{entityId}/sponsored-domains](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorlistcontroller_addsponsoreddomains_legacydomain.md)

## List sponsorable accounts (deprecated)

 - [GET /v1/domain/{domainId}/account/{entityId}/sponsorable-accounts](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorlistcontroller_getsponsorableaccounts_legacydomain.md)

## Add sponsored accounts (deprecated)

 - [POST /v1/domain/{domainId}/account/{entityId}/sponsored-accounts](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorlistcontroller_addsponsoredaccounts_legacydomain.md)

## Add a single sponsored account (idempotent) (deprecated)

 - [PUT /v1/domain/{domainId}/account/{entityId}/sponsored-accounts/domains/{sponsoredAccountDomainId}/accounts/{sponsoredAccountId}](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorlistcontroller_addsponsoredaccount_legacydomain.md)

## Remove a single sponsored account (deprecated)

 - [DELETE /v1/domain/{domainId}/account/{entityId}/sponsored-accounts/domains/{sponsoredAccountDomainId}/accounts/{sponsoredAccountId}](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/sponsorlistcontroller_removesponsoredaccount_legacydomain.md)

## Get audit events for sponsorship configuration changes (deprecated)

 - [GET /v1/domain/{domainId}/sponsor/events](https://docs.ripple.com/products/custody/reference/api/openapi/gas-station-(obsolete)/eventcontroller_getevents_legacydomain.md)

