# Gas station

Automatic fee sponsorship service for Ripple Custody platform
The legacy singular `/v1/domain/...` operations documented through v1.38 still work, but they are deprecated, so this reference no longer lists them. Use the `/v1/domains/...` operations on this page instead.

 - [GET /v1/domains/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorcontroller_getsponsor.md)
 - [POST /v1/domains/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorcontroller_createsponsor.md)
 - [PUT /v1/domains/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorcontroller_updatesponsor.md)
 - [DELETE /v1/domains/{domainId}/account/{accountId}/sponsor](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorcontroller_deletesponsor.md)
 - [GET /v1/domains/{domainId}/sponsors](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorscontroller_listsponsors.md)
 - [GET /v1/domains/{domainId}/sponsors/account/{accountId}/sponsor](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorscontroller_getaccountsponsor.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) Acc
 - [GET /v1/domains/{domainId}/sponsors/account/{accountId}/valid-sponsors](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorscontroller_getvalidsponsors.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 alre
 - [GET /v1/domains/{domainId}/sponsors/domain-sponsor](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorscontroller_getdomainsponsor.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 spon
 - [GET /v1/domains/{domainId}/sponsors/sponsored-accounts](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorscontroller_listsponsoredaccounts.md): Returns all accounts within the domain along with whether each account is currently sponsored by a Gas Station.
 - [GET /v1/domains/{domainId}/sponsors/sponsored-domains](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorscontroller_listsponsoreddomains.md): Returns all sub-domains within the domain along with whether each sub-domain is currently sponsored by a Gas Station.
 - [GET /v1/domains/{domainId}/account/{entityId}/sponsorable-domains](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorlistcontroller_getsponsorabledomains.md)
 - [POST /v1/domains/{domainId}/account/{entityId}/sponsored-domains](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorlistcontroller_addsponsoreddomains.md)
 - [GET /v1/domains/{domainId}/account/{entityId}/sponsorable-accounts](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorlistcontroller_getsponsorableaccounts.md)
 - [POST /v1/domains/{domainId}/account/{entityId}/sponsored-accounts](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorlistcontroller_addsponsoredaccounts.md)
 - [PUT /v1/domains/{domainId}/account/{entityId}/sponsored-accounts/domains/{sponsoredAccountDomainId}/accounts/{sponsoredAccountId}](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorlistcontroller_addsponsoredaccount.md)
 - [DELETE /v1/domains/{domainId}/account/{entityId}/sponsored-accounts/domains/{sponsoredAccountDomainId}/accounts/{sponsoredAccountId}](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/sponsorlistcontroller_removesponsoredaccount.md)
 - [GET /v1/domains/{domainId}/sponsor/events](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/eventcontroller_getevents.md)
 - [GET /v1/health](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/healthcontroller_liveness.md)
 - [GET /v1/ready](https://docs.ripple.com/pt-br/products/custody/reference/api/openapi/gas-station/healthcontroller_readiness.md)
