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

Lightspark Agent Operations API

Endpoints called by the agent itself using its own credentials (obtained via device code redemption). Scoped to the agent's associated customer — all requests automatically operate on behalf of that customer and are subject to the agent's policy. When an action requires approval, the resulting transaction enters a pending state and must be approved by the platform via `POST /transactions/{transactionId}/approve`.

Lightspark Agent Operations API is one of 22 APIs that Lightspark publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Agent Operations. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 15 operations across 13 paths, and defines 352 schemas. It is described by OpenAPI 3.1.0, at version 2025-10-13.

Requests are made against a single base URL, https://api.lightspark.com/grid/2025-10-13.

15 operations 13 paths 352 schemas 1 DELETE9 GET5 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2025-10-13
Base URL
https://api.lightspark.com/grid/2025-10-13
Authentication
HTTP Basic, HTTP Bearer, API Key
Resource Areas
1

Authentication & Security 3

Lightspark Agent Operations API declares 3 security schemes for authenticating requests. It accepts HTTP basic authentication (BasicAuth). It accepts HTTP bearer tokens (AgentAuth). An API key is passed in the header as X-Grid-Signature (WebhookSignature). By default, every request must be authenticated.

  • BasicAuth — API token authentication using format :
  • AgentAuth — Bearer token authentication for agent-scoped endpoints. The token is the accessToken returned when redeeming a device code via POST /agents/device-codes/{code}…
  • WebhookSignature — Secp256r1 (P-256) asymmetric signature of the webhook payload, which can be used to verify that the webhook was sent by Grid. To verify the signature: 1. Get t…

Paths & Operations 15

Across 13 paths, the API surfaces 15 operations — 1 DELETE, 9 GET, 5 POST. Each is listed below with its method, path, parameters, and response codes.

Agent Operations 15

Endpoints called by the agent itself using its own credentials (obtained via device code redemption). Scoped to the agent's associated customer — all requests automatically operat…

GET
/agents/me
Get current agent
getAgentMe → 200401500
GET
/agents/me/transactions
List agent transactions
agentListTransactions 11 params → 200400401500
GET
/agents/me/transactions/{transactionId}
Get agent transaction by ID
agentGetTransaction 1 param → 200401404500
POST
/agents/me/quotes
Create a transfer quote
agentCreateQuote 1 param body → 201400401403412424500
GET
/agents/me/quotes/{quoteId}
Get agent quote by ID
agentGetQuote 1 param → 200401404500
POST
/agents/me/quotes/{quoteId}/execute
Execute a quote
agentExecuteQuote 3 params → 200400401403404409500
GET
/agents/me/actions
List agent's own actions
agentListActions 3 params → 200401500
GET
/agents/me/actions/{actionId}
Get an agent action
agentGetAction 1 param → 200401404500
POST
/agents/me/transfer-in
Create a transfer-in
agentCreateTransferIn 1 param body → 201400401403404500
POST
/agents/me/transfer-out
Create a transfer-out
agentCreateTransferOut 1 param body → 201400401403404500
GET
/agents/me/internal-accounts
List agent's internal accounts
agentListInternalAccounts 4 params → 200401500
GET
/agents/me/external-accounts
List agent external accounts
agentListExternalAccounts 3 params → 200400401500
POST
/agents/me/external-accounts
Add an external account
agentCreateExternalAccount body → 201400401409500
GET
/agents/me/external-accounts/{externalAccountId}
Get agent external account by ID
agentGetExternalAccount 1 param → 200401404500
DELETE
/agents/me/external-accounts/{externalAccountId}
Delete agent external account
agentDeleteExternalAccount 1 param → 204401404500

Schemas 352

The contract defines 352 schemas that model the data the API accepts and returns. The most detailed are CardTransaction (20 properties), Quote (18 properties), Transaction (14 properties), AgentAction (12 properties). Each schema is shown below with its type and property counts.

EurAccountInfoBase
object
3 properties 2 required
PaymentBwpAccountInfo
PaymentVndAccountInfo
GtqExternalAccountInfo
Agent
object
A programmatic agent with scoped permissions and a spending policy, used to automate payment workflows.
9 properties 9 required
Error404
object
4 properties 3 required
GtqAccountInfoBase
object
4 properties 4 required
MxnExternalAccountCreateInfo
PaymentEgpAccountInfo
XofExternalAccountCreateInfo
ExternalAccountCreateInfoOneOf
XafAccountInfo
OutgoingTransactionStatus
string
Status of an outgoing payment transaction. | Status | Description | |--------|-------------| | PENDING | Quote is pending confirmation | | PENDINGAUTHORIZATION…
DkkAccountInfo
CurrencyAmount
object
2 properties 2 required
MyrAccountInfoBase
object
4 properties 4 required
MxnExternalAccountInfo
CadBeneficiary
object
9 properties 2 required
PaymentSwiftAccountInfo
KesExternalAccountInfo
BrlBeneficiary
object
8 properties 2 required
BaseWalletExternalAccountInfo
UgxExternalAccountCreateInfo
SlvExternalAccountCreateInfo
AgentPermission
string
Permission granted to an agent that determines what actions it can perform. VIEWTRANSACTIONS: Can list and retrieve transactions and account balances. CREATETR…
Error403
object
4 properties 3 required
ExternalAccountReference
object
1 property 1 required
VndBeneficiary
object
8 properties 2 required
PkrBeneficiary
object
8 properties 2 required
InrAccountInfoBase
object
Required fields depend on the selected paymentRails: - NEFT: accountNumber, ifsc, rail - RTGS: accountNumber, ifsc, rail - UPI: vpa
6 properties 1 required
PkrExternalAccountInfo
AccountDestination
BrlAccountInfoBase
object
4 properties 4 required
SolanaWalletInfo
object
2 properties 2 required
ZarExternalAccountInfo
SgdBeneficiary
object
8 properties 2 required
SlvAccountInfoBase
object
Required fields depend on the selected paymentRails: - BANKTRANSFER: bankAccountType, accountNumber - MOBILEMONEY: phoneNumber
5 properties 1 required
MyrExternalAccountInfo
NgnExternalAccountCreateInfo
CopExternalAccountCreateInfo
PhpAccountInfoBase
object
3 properties 3 required
AgentActionType
string
The type of action the agent is requesting. | Type | Description | |------|-------------| | EXECUTEQUOTE | Execute a cross-currency quote | | TRANSFEROUT | Tra…
PhpBeneficiary
object
8 properties 2 required
AedAccountInfoBase
object
3 properties 2 required
EurExternalAccountInfo
BdtExternalAccountInfo
MwkExternalAccountCreateInfo
DkkExternalAccountInfo
GhsAccountInfo
TzsExternalAccountInfo
PhpExternalAccountInfo
TransactionListResponse
object
4 properties 2 required
CardSettlementSummary
object
2 properties 2 required
JmdExternalAccountInfo
BeneficiaryVerifiedData
object
1 property
GhsBeneficiary
object
8 properties 2 required
SolanaWalletExternalAccountInfo
AgentExecutionMode
string
Execution mode controlling whether agent actions require human approval. AUTO: The agent can execute actions autonomously without explicit approval. APPROVALRE…
NgnBeneficiary
object
8 properties 2 required
OnChainTransaction
object
2 properties 2 required
TransactionSourceType
string
Type of transaction source
AgentAccountRule
object
Per-account policy override that takes precedence over the agent's default policy for a specific account.
3 properties 1 required
Transaction
object
14 properties 7 required
HkdBeneficiary
object
8 properties 2 required
BaseDestination
object
1 property 1 required
JmdBeneficiary
object
8 properties 4 required
RwfBeneficiary
object
8 properties 2 required
HkdExternalAccountCreateInfo
ZmwExternalAccountInfo
UsdExternalAccountInfo
UgxBeneficiary
object
8 properties 2 required
InternalAccountListResponse
object
4 properties 2 required
AedAccountInfo
TzsAccountInfoBase
object
3 properties 3 required
BdtExternalAccountCreateInfo
EurBeneficiary
object
8 properties 3 required
UsdBeneficiary
object
8 properties 2 required
XafExternalAccountInfo
XofAccountInfoBase
object
4 properties 4 required
PkrAccountInfo
PurposeOfPayment
string
The purpose of the payment. This may be required when sending to certain geographies (e.g. India).
SparkWalletInfo
object
2 properties 2 required
KesExternalAccountCreateInfo
IncomingRateDetails
object
Details about the rate and fees for an incoming transaction. Note: gridApiFixedFee is denominated in the receiving currency, so its equivalent value in the sen…
4 properties 4 required
PaymentGhsAccountInfo
InternalAccountStatus
string
Status of a Grid internal account. The status determines whether the account can send or receive payments. - PENDING: The account is under review and is being…
PaymentDkkAccountInfo
AccountQuoteSource
ThbExternalAccountCreateInfo
Currency
object
4 properties
KesBeneficiary
object
8 properties 2 required
BusinessBeneficiary
object
8 properties 2 required
MwkExternalAccountInfo
InrExternalAccountInfo
PolygonWalletExternalAccountInfo
ThbBeneficiary
object
8 properties 2 required
GtqAccountInfo
PaymentEmbeddedWalletInfo
QuoteSourceType
string
Type of quote funding source
BdtBeneficiary
object
8 properties 2 required
TzsAccountInfo
ThbExternalAccountInfo
VndExternalAccountCreateInfo
BaseExternalAccountInfo
object
1 property 1 required
InrAccountInfo
EgpAccountInfo
PaymentNgnAccountInfo
QuoteDestinationOneOf
BaseWalletInfo
object
2 properties 2 required
AgentActionListResponse
object
4 properties 2 required
PaymentRail
string
The payment rail used for the transfer. Payment rails represent the underlying payment network or system used to move funds between accounts.
TzsBeneficiary
object
8 properties 2 required
PaymentKesAccountInfo
InrExternalAccountCreateInfo
PaymentBdtAccountInfo
HtgAccountInfo
IncomingTransaction
Error400
object
4 properties 3 required
IdrAccountInfoBase
object
5 properties 5 required
RwfAccountInfo
AgentAction
object
An action submitted by an agent that may require platform approval before execution. All agent-initiated operations (quote execution, transfers) are represente…
12 properties 8 required
EurAccountInfo
SwiftAccountInfoBase
object
6 properties 4 required
PaymentInstructions
object
3 properties 1 required
BasePaymentAccountInfo
object
1 property 1 required
BaseQuoteSource
object
1 property 1 required
KesAccountInfoBase
object
3 properties 3 required
PaymentSolanaWalletInfo
PolygonWalletInfo
object
2 properties 2 required
TransactionDirection
string
Whether the transaction credits (funds in) or debits (funds out) the customer's account. Independent of type: an incoming transaction is normally a CREDIT, but…
IdrAccountInfo
CopAccountInfo
PaymentZmwAccountInfo
PaymentUsdAccountInfo
MwkAccountInfoBase
object
3 properties 3 required
ZarExternalAccountCreateInfo
UgxExternalAccountInfo
MyrBeneficiary
object
8 properties 2 required
CopBeneficiary
object
10 properties 2 required
ExternalAccountListResponse
object
4 properties 2 required
PaymentAedAccountInfo
EgpExternalAccountInfo
JmdAccountInfo
SwiftBeneficiary
object
8 properties 2 required
GtqExternalAccountCreateInfo
MxnAccountInfo
BdtAccountInfo
CardTransaction
object
Parent transaction row for a card authorization and all of the pulls / settlements / refunds that reconcile against it. Child events are rolled up into the pul…
20 properties 12 required
TronWalletInfo
object
2 properties 2 required
BeneficiaryVerificationStatus
string
The result of verifying the beneficiary name against the account holder name. | Status | Description | |--------|-------------| | MATCHED | The beneficiary nam…
PaymentAccountType
string
Type of payment account or wallet
CardRefundSummary
object
2 properties 2 required
Address
object
6 properties 3 required
CnyAccountInfoBase
object
Required fields depend on the selected paymentRails: - BANKTRANSFER: accountNumber, bankName - MOBILEMONEY: bankName, phoneNumber
4 properties 2 required
JmdAccountInfoBase
object
5 properties 5 required
GtqBeneficiary
object
8 properties 4 required
GbpExternalAccountInfo
InrBeneficiary
object
8 properties 2 required
IdrBeneficiary
object
8 properties 2 required
SlvAccountInfo
PaymentLightningInvoiceInfo
InternalAccount
object
10 properties 8 required
ExternalAccountInfoOneOf
PhpAccountInfo
JmdExternalAccountCreateInfo
ScaChallenge
object
A Strong Customer Authentication challenge that must be satisfied before a money-movement operation can complete. This object is only present when the customer…
7 properties 4 required
PaymentPkrAccountInfo
AgentActionStatus
string
Status of an agent action. | Status | Description | |--------|-------------| | PENDINGAPPROVAL | Submitted by the agent, awaiting platform approval before exec…
PaymentUgxAccountInfo
ExternalAccountType
string
Type of external account or wallet
MyrAccountInfo
LightningInfo
object
Lightning payment destination. Exactly one of invoice, bolt12, or lightningAddress must be provided.
4 properties 1 required
EgpExternalAccountCreateInfo
Error424
object
4 properties 3 required
PaymentBaseWalletInfo
InternalAccountReference
object
1 property 1 required
ZmwExternalAccountCreateInfo
PaymentXafAccountInfo
DkkAccountInfoBase
object
3 properties 2 required
SwiftExternalAccountInfo
BwpExternalAccountCreateInfo
PaymentMyrAccountInfo
AedBeneficiary
object
8 properties 3 required
UmaAddressTransactionDestination
BwpAccountInfoBase
object
3 properties 3 required
Refund
object
5 properties 3 required
TransferInRequest
object
3 properties 2 required
GbpBeneficiary
object
8 properties 2 required
PaymentArsAccountInfo
CadAccountInfo
EurExternalAccountCreateInfo
XofExternalAccountInfo
Error412
object
4 properties 3 required
ExternalAccountDestinationReference
object
2 properties 1 required
IdrExternalAccountInfo
RwfExternalAccountInfo
RwfExternalAccountCreateInfo
GbpAccountInfoBase
object
3 properties 3 required
OutgoingRateDetails
object
Details about the rate and fees for an outgoing transaction or quote. Note: counterpartyFixedFee is denominated in the receiving currency, so its equivalent va…
6 properties 6 required
Error409
object
4 properties 3 required
XafExternalAccountCreateInfo
TransactionSourceOneOf
OutgoingTransactionFailureReason
string
Reason for failure of an outgoing transaction. This is used to provide more context on why a transaction failed. If the transaction is not in a failed state, t…
Error500
object
4 properties 3 required
ZarBeneficiary
object
8 properties 2 required
TzsExternalAccountCreateInfo
BrlExternalAccountInfo
ZmwAccountInfo
EgpBeneficiary
object
8 properties 2 required
AccountTransactionSource
BrlExternalAccountCreateInfo
GhsExternalAccountInfo
SlvExternalAccountInfo
MxnAccountInfoBase
object
2 properties 2 required
QuoteRequest
object
11 properties 4 required
DkkBeneficiary
object
8 properties 2 required
CadExternalAccountInfo
AedExternalAccountCreateInfo
SwiftExternalAccountCreateInfo
CopAccountInfoBase
object
Required fields depend on the selected paymentRails: - BANKTRANSFER: accountNumber, bankAccountType, bankName - MOBILEMONEY: bankName, phoneNumber
5 properties 2 required
PaymentEurAccountInfo
EthereumWalletExternalAccountInfo
TransactionOneOf
CounterpartyInformation
object
Additional information about the counterparty, if available and relevant to the transaction and platform.
CnyExternalAccountCreateInfo
DestinationType
string
Type of payment destination
KesAccountInfo
GbpAccountInfo
AccountTransactionDestination
CryptoNetwork
string
The blockchain network an on-chain transaction settled on. Whether this is the mainnet or a test network (e.g. Solana devnet) is determined by your platform's…
TransactionDestinationType
string
Type of transaction destination
CnyAccountInfo
UgxAccountInfo
SwiftAccountInfo
RailSelectionMode
string
How the payment rail was chosen — MANUAL when the platform specified a paymentRail on the destination, AUTO when Lightspark selects it.
NgnAccountInfoBase
object
3 properties 3 required
ZmwBeneficiary
object
8 properties 2 required
LightningExternalAccountInfo
PaymentSgdAccountInfo
VndExternalAccountInfo
PaymentGtqAccountInfo
NgnAccountInfo
BdtAccountInfoBase
object
Required fields depend on the selected paymentRails: - BANKTRANSFER: accountNumber, bankName - MOBILEMONEY: bankName, phoneNumber
6 properties 2 required
VndAccountInfo
PkrAccountInfoBase
object
Required fields depend on the selected paymentRails: - BANKTRANSFER: accountNumber, bankName - MOBILEMONEY: bankName, phoneNumber
5 properties 2 required
PaymentMxnAccountInfo
IdrExternalAccountCreateInfo
PaymentCopAccountInfo
ExternalAccount
VndAccountInfoBase
object
4 properties 4 required
BaseTransactionSource
object
2 properties 1 required
AgentUsage
object
Real-time counters tracking the agent's spending and transaction activity against its policy limits.
5 properties 3 required
AgentSpendingLimits
object
Spending limits that cap the agent's transaction amounts and frequency. All amount fields are integers in the smallest unit of the specified currency. When a t…
5 properties 2 required
MxnBeneficiary
object
8 properties 2 required
AgentApprovalThresholds
object
Thresholds that force approval for high-value transactions, overriding the default execution mode. When a transaction is denominated in a different currency th…
2 properties
HkdAccountInfo
CnyExternalAccountInfo
SgdAccountInfo
MyrExternalAccountCreateInfo
ZarAccountInfoBase
object
3 properties 3 required
SgdExternalAccountCreateInfo
TronWalletExternalAccountInfo
NgnExternalAccountInfo
CardMerchant
object
3 properties 1 required
UsdAccountInfo
XofAccountInfo
XafBeneficiary
object
8 properties 2 required
AgentTransferDetails
object
Details of a transfer-type agent action (TRANSFEROUT or TRANSFERIN).
4 properties 4 required
PaymentSlvAccountInfo
PaymentBrlAccountInfo
PaymentJmdAccountInfo
PaymentHkdAccountInfo
TransactionStatus
string
Status of a payment transaction. | Status | Description | |--------|-------------| | CREATED | Initial lookup has been created | | PENDING | Quote has been cre…
CadAccountInfoBase
object
4 properties 4 required
PaymentHtgAccountInfo
BaseTransactionDestination
object
2 properties 1 required
MwkBeneficiary
object
8 properties 2 required
BrlAccountInfo
PaymentSparkWalletInfo
HkdExternalAccountInfo
GhsExternalAccountCreateInfo
ThbAccountInfo
MwkAccountInfo
PaymentPhpAccountInfo
HtgExternalAccountCreateInfo
CardPullSummary
object
3 properties 2 required
SlvBeneficiary
object
8 properties 2 required
BwpBeneficiary
object
8 properties 2 required
HtgAccountInfoBase
object
2 properties 2 required
PaymentThbAccountInfo
HkdAccountInfoBase
object
4 properties 4 required
PaymentZarAccountInfo
PhpExternalAccountCreateInfo
ZarAccountInfo
PaymentXofAccountInfo
IncomingTransactionFailureReason
string
Reason for failure of an incoming transaction. This is used to provide more context on why a transaction failed. If the transaction is not in a failed state, t…
PkrExternalAccountCreateInfo
UgxAccountInfoBase
object
3 properties 3 required
TransactionType
string
Type of transaction (incoming payment or outgoing payment)
TransferOutRequest
object
4 properties 2 required
PaymentTzsAccountInfo
PaymentCadAccountInfo
TransactionDestinationOneOf
ExternalAccountCreateRequest
Quote
object
18 properties 13 required
Error401
object
4 properties 3 required
RealtimeFundingTransactionSource
RwfAccountInfoBase
object
3 properties 3 required
QuoteLockSide
string
The side of the quote which should be locked and specified in the lockedCurrencyAmount. For example, if I want to send exactly $5 MXN from my wallet, I would s…
UsdExternalAccountCreateInfo
GhsAccountInfoBase
object
Required fields depend on the selected paymentRails: - BANKTRANSFER: accountNumber, bankName - MOBILEMONEY: bankName, phoneNumber
4 properties 2 required
HtgExternalAccountInfo
CopExternalAccountInfo
PaymentPolygonWalletInfo
PaymentRwfAccountInfo
OutgoingTransaction
ReconciliationInstructions
object
Instructions for reconciling a payment with this transaction. For the on-chain transaction to or from an external crypto wallet that is the transaction's own s…
2 properties
EthereumWalletInfo
object
2 properties 2 required
PaymentInrAccountInfo
UmaAddressDestination
AgentPolicy
object
Policy governing what an agent can do, how it executes actions, and its spending boundaries.
5 properties 3 required
CardTransactionStatus
string
Lifecycle status of a card transaction. | Status | Description | |--------|-------------| | AUTHORIZED | The auth has been approved and a hold placed on the fu…
AedExternalAccountInfo
UmaAddressTransactionSource
QuoteSourceOneOf
BwpAccountInfo
PaymentMwkAccountInfo
InternalAccountType
string
Classification of an internal account. - INTERNALFIAT: A Grid-managed fiat holding account (for example, the USD holding account used as the source for Payouts…
PaymentIdrAccountInfo
CadExternalAccountCreateInfo
ExternalAccountStatus
string
Status of an external account
ThbAccountInfoBase
object
4 properties 4 required
PaymentCnyAccountInfo
XafAccountInfoBase
object
4 properties 4 required
PaymentEthereumWalletInfo
RealtimeFundingQuoteSource
UsdAccountInfoBase
object
3 properties 3 required
XofBeneficiary
object
8 properties 2 required
DkkExternalAccountCreateInfo
SgdExternalAccountInfo
EgpAccountInfoBase
object
Required fields depend on the selected paymentRails: - BANKTRANSFER: bankName, iban - MOBILEMONEY: bankName, phoneNumber
4 properties 2 required
ScaFactor
string
A Strong Customer Authentication factor. | Factor | Description | |--------|-------------| | SMSOTP | One-time code sent by SMS to the customer's verified phon…
HtgBeneficiary
object
8 properties 2 required
ZmwAccountInfoBase
object
3 properties 3 required
AgentAccountRestrictions
object
Optional restrictions that limit the agent to specific accounts or override policy per account.
2 properties
SparkWalletExternalAccountInfo
PaymentGbpAccountInfo
PaymentTronWalletInfo
SgdAccountInfoBase
object
4 properties 3 required
GbpExternalAccountCreateInfo
CnyBeneficiary
object
8 properties 2 required
BwpExternalAccountInfo

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

lightspark-agent-operations-api-openapi.yml Raw ↑

Other APIs Lightspark publishes across the network.

Lightspark Agent Management API
Lightspark API Tokens API
Lightspark Available UMA Providers API
Lightspark Cards API
Lightspark Contact Verification API
Lightspark Cross-Currency Transfers API
Lightspark Customers API
Lightspark Discoveries API
Lightspark Documents API
Lightspark Embedded Wallet Auth API
Lightspark Exchange Rates API
Lightspark External Accounts API
Where this information came from

This is an independent, third-party profile of Lightspark Agent Operations 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.