Skip to main content

Check swap intent status

Checks the current status of a swap intent. Retrieves the intent's lifecycle state, associated transactions, and additional metadata.

get
/v1/intents/{intent_id}

Possible swap statuses​

The status field represents the overall progress of the swap, combining both intent and swap state.

StatusDescription
createdThe intent has been created but no approval has been added yet.
approvedUser has added approval/signature for the swap.
verifiedResolver has accepted the intent and is ready to execute.
failedThe intent was declined by the resolver.
depositedResolver has deposited user tokens on source network into the escrow.
finishedUser has received funds on destination network in target token.
expiredThe intent expired before execution.
refundedTokens have been refunded to the user.

Request​

Header parameters​

Requires authentication.

Query paramaters​

NameTypeRequiredDescription
intent_idStringTrueSwap intent ID.

Body parameters​

Doesn't require setting any body parameters.

Sample query

https://defiapi.changelly.com/v1/intents/fe5601fb-60f2-4cb0-8a67-c55bd3640411

Response​

Successful response​

NameTypeRequiredDescription
intent_idNumberRequiredSwap intent ID.
statusStringRequiredSwap intent status. Possible values.
fromObjectRequiredBase token information.
from.addressStringRequiredPart of the from object. Sender address.
from.txStringOptionalPart of the from object. Sender hash.
from.tx_atStringOptionalPart of the from object. Time of sender hash creation.
from.network_idNumberRequiredPart of the from object. Sender network relation.
from.token_idNumberRequiredPart of the from object. Sender token ID.
from.contract_addressStringRequiredPart of the from object. Sender contract address.
from.decimalsNumberRequiredPart of the from object. Sender token decimals to adjust amount.
from.amountDecimals in stringRequiredPart of the from object. Amount to swap.
toObjectRequiredQuote token information.
to.addressStringRequiredPart of the to object. Receiver address.
to.txStringOptionalPart of the to object. Receiver hash.
to.tx_atStringOptionalPart of the to object. Time of receiver hash creation.
to.network_idNumberRequiredPart of the to object. Network relation.
to.token_idNumberRequiredPart of the to object. Receiver token ID.
to.contract_addressStringRequiredPart of the to object. Receiver contract address.
to.decimalsNumberRequiredPart of the to object. Receiver token decimals to adjust amount.
to.min_amountDecimals in stringRequiredPart of the to object. Minimal quote amount expressed in basis points.
to.max_amountDecimals in stringRequiredPart of the to object. Maximum quote amount expressed in basis points.
to.amount_expectedDecimals in stringRequiredPart of the to object. Expected minimal quote amount expressed in basis points.
to.amountDecimals in stringOptionalPart of the to object. Receiver token amount expressed in basis points.
refundObjectRequiredRefund information.
refund.addressStringOptionalPart of the refund object. Address for potential refund.
refund.txStringOptionalPart of the refund object. Refund address hash.
refund.tx_atStringOptionalPart of the refund object. Time of refund hash creation.
feesObjectOptionalApplied fees for current quote.
fees.affiliateObjectOptionalPart of the fees object. Affiliate fee information.
fees.affiliate.network_idNumberOptionalPart of the fees.affiliate object. Affiliate network relation.
fees.affiliate.contract_addressStringOptionalPart of the fees.affiliate object. Affiliate token contract address.
fees.affiliate.token_idNumberOptionalPart of the fees.affiliate object. Affiliate token ID.
fees.affiliate.decimalsNumberOptionalPart of the fees.affiliate object. Affiliate token decimals to adjust amount.
fees.affiliate.amountDecimals in stringOptionalPart of the fees.affiliate object. Affiliate fee amount.
fees.affiliate.bpsStringOptionalPart of the fees.affiliate object. Affiliate amount of basis points.
deposit_addressString / NullableRequiredDeposit address. Not null value only for deposit payin type.
created_atTimestamp (microseconds)RequiredSwap intent creation time.
Sample response
application/json
{
"intent_id": "fe5601fb-60f2-4cb0-8a67-c55bd3640411",
"status": "Deposited",
"from": {
"amount": "10000000",
"address": "0xbe7A42Af09*********8a88c8EE",
"tx": "0x000000000000000000000000000000000000000",
"tx_at": "2026-01-15T12:05:00Z",
"network_id": 1,
"token_id": 1,
"contract_address": "0x000000000000000000000000000000000000000",
"decimals": 6
},
"to": {
"address": "0xac6B52Af09*********8a88c8EE",
"tx": "1x000000000000000000000000000000000000000",
"tx_at": "2026-01-15T12:05:00Z",
"network_id": 2,
"token_id": 4,
"contract_address": "1x000000000000000000000000000000000000000",
"decimals": 18,
"min_amount": "4230589541052713",
"max_amount": "4251848784977602",
"amount_expected": "4251848784977602"
},
"refund": {
"address": "0xc02aaa39************083c756cc2",
"tx": "0x000000000000000000000000000000000000000",
"tx_at": "2026-01-15T12:05:00Z"
},
"fees": {
"affiliate": {
"network_id": 1,
"token_id": 78,
"contract_address": "0xc02aaa39************083c756cc2",
"bps": "25",
"amount": "6000000000000",
"decimals": 18
}
},
"deposit_address": null,
"created_at": 1778856025
}

Error response​

Check the error response schema.

Error codes​

Error codeError typeError description
401authentication_errorAuthentication error.
404entity_not_found_errorQuery swap intent not found.
404http_errorIncorrect HTTP request.
500internal_errorInternal server error.
{
"code": 401,
"type": "authentication_error",
"message": "Authentication error"
}