OpenAPI Testing

Get supported tokens

get

Retrieves a list of tokens currently supported by the 1Click API for asset swaps.

Each token entry includes its blockchain, contract address (if available), price in USD, and other metadata such as symbol and decimals.

Responses
chevron-right
200Success
application/json
get
/v0/tokens
200Success

Request a swap quote

post

Generates a swap quote based on input parameters such as the assets, amount, slippage tolerance, and recipient/refund information.

Returns pricing details, estimated time, and a unique deposit address to which tokens must be transferred to initiate the swap.

You can set the dry parameter to true to simulate the quote request without generating a deposit address or initiating the swap process. This is useful for previewing swap parameters or validating input data without committing to an actual swap.

This endpoint is the first required step in the swap process.

Body
drybooleanRequired

Flag indicating whether this is a dry run request. If true, the response will NOT contain the following fields:

  • depositAddress
  • timeWhenInactive
  • timeEstimate
  • deadline
Example: true
swapTypestring · enumRequired

Whether to use the amount as the output or the input for the basis of the swap:

  • EXACT_INPUT - request output amount for exact input.
  • EXACT_OUTPUT - request output amount for exact output. The refundTo address will always receive excess tokens back even after the swap is complete.
Possible values:
slippageTolerancenumberRequired

Slippage tolerance for the swap. This value is in basis points (1/100th of a percent), e.g. 100 for 1% slippage.

Example: 100
originAssetstringRequired

ID of the origin asset.

Example: nep141:arb-0xaf88d065e77c8cc2239327c5edb3a432268e5831.omft.near
depositTypestring · enumRequired

Type of the deposit address:

  • ORIGIN_CHAIN - deposit address on the origin chain
  • INTENTS - account ID inside near intents to which you should transfer assets inside intents.
Possible values:
destinationAssetstringRequired

ID of the destination asset.

Example: nep141:sol-5ce3bf3a31af18be40ba30f721101b4341690186.omft.near
amountstringRequired

Amount to swap as the base amount (can be switched to exact input/output using the dedicated flag), denoted in the smallest unit of the specified currency (e.g., wei for ETH).

Example: 1000
refundTostringRequired

Address for user refund.

Example: 0x2527D02599Ba641c19FEa793cD0F167589a0f10D
refundTypestring · enumRequired

Type of refund address:

  • ORIGIN_CHAIN - assets will be refunded to refundTo address on the origin chain
  • INTENTS - assets will be refunded to refundTo intents account
Possible values:
recipientstringRequired

Recipient address. The format should match recipientType.

Example: 13QkxhNMrTPxoCkRdYdJ65tFuwXPhL5gLS2Z5Nr6gjRK
recipientTypestring · enumRequired

Type of recipient address:

  • DESTINATION_CHAIN - assets will be transferred to chain of destinationAsset
  • INTENTS - assets will be transferred to account inside intents
Possible values:
deadlinestring · date-timeRequired

Timestamp in ISO format, that identifies when user refund will begin if the swap isn't completed by then.

Example: 2019-08-24T14:15:22Z
referralstringOptional

Referral identifier

Example: referral
quoteWaitingTimeMsnumberOptional

Time in milliseconds user is willing to wait for quote from relay.

Default: 3000Example: 3000
Responses
chevron-right
200Success
application/json
post
/v0/quote
post

Updates the given properties of a Super SIM Fleet instance from your account.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
SidstringRequired

The SID of the Fleet resource to update.

Body
UniqueNamestringOptional

An application-defined string that uniquely identifies the resource. It can be used in place of the resource's sid in the URL to address the resource.

NetworkAccessProfilestringOptional

The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to.

IpCommandsUrlstring · uriOptional

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an IP Command from your device to a special IP address. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

IpCommandsMethodstring · enumOptional

A string representing the HTTP method to use when making a request to ip_commands_url. Can be one of POST or GET. Defaults to POST.

Possible values:
SmsCommandsUrlstring · uriOptional

The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the SMS Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored.

SmsCommandsMethodstring · enumOptional

A string representing the HTTP method to use when making a request to sms_commands_url. Can be one of POST or GET. Defaults to POST.

Possible values:
DataLimitintegerOptional

The total data usage (download and upload combined) in Megabytes that each Super SIM assigned to the Fleet can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000).

Responses
chevron-right
200

OK

application/json
post
/v1/Fleets/{Sid}
200

OK

Listar as atribuições de atividades pendentes da pessoa relacionada ao token de autenticação (Auth)

get
Authorizations
AuthorizationstringRequired

Utilize um token válido de usuário para realizar a requisição

Query parameters
pageNumberinteger · int32Optional

Indicação do número da página para paginação de registros

recordsPerPageinteger · int32Optional

Indicação do número de registros a serem retornados

flowIdinteger · int32Optional

Código identificador do processo a ser filtrado

serviceIdinteger · int32Optional

Código identificador dao serviço a ser filtrado

appCodestringOptional

Código identificador do aplicativo de processos a ser filtrado

mobileEnabledOnlybooleanOptional

Indicativo se devem ser listadas somente as atividades que podem ser concluidas via mobile

Responses
chevron-right
200

Sucesso

get
/api/2/assignments

Last updated

Was this helpful?