Submit signed permit
curl --request POST \
--url https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"supportedAssetId": "aabbccdd-1122-4334-9556-7788990011ab",
"signature": {
"v": "28",
"r": "0x1111111111111111111111111111111111111111111111111111111111111111",
"s": "0x2222222222222222222222222222222222222222222222222222222222222222"
}
}
'import requests
url = "https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits"
payload = {
"supportedAssetId": "aabbccdd-1122-4334-9556-7788990011ab",
"signature": {
"v": "28",
"r": "0x1111111111111111111111111111111111111111111111111111111111111111",
"s": "0x2222222222222222222222222222222222222222222222222222222222222222"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
supportedAssetId: 'aabbccdd-1122-4334-9556-7788990011ab',
signature: {
v: '28',
r: '0x1111111111111111111111111111111111111111111111111111111111111111',
s: '0x2222222222222222222222222222222222222222222222222222222222222222'
}
})
};
fetch('https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'supportedAssetId' => 'aabbccdd-1122-4334-9556-7788990011ab',
'signature' => [
'v' => '28',
'r' => '0x1111111111111111111111111111111111111111111111111111111111111111',
's' => '0x2222222222222222222222222222222222222222222222222222222222222222'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits"
payload := strings.NewReader("{\n \"supportedAssetId\": \"aabbccdd-1122-4334-9556-7788990011ab\",\n \"signature\": {\n \"v\": \"28\",\n \"r\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"s\": \"0x2222222222222222222222222222222222222222222222222222222222222222\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"supportedAssetId\": \"aabbccdd-1122-4334-9556-7788990011ab\",\n \"signature\": {\n \"v\": \"28\",\n \"r\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"s\": \"0x2222222222222222222222222222222222222222222222222222222222222222\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supportedAssetId\": \"aabbccdd-1122-4334-9556-7788990011ab\",\n \"signature\": {\n \"v\": \"28\",\n \"r\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"s\": \"0x2222222222222222222222222222222222222222222222222222222222222222\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"result": {
"id": "11aa22bb-33cc-4dd4-9ee5-66ff77aa88bb",
"supportedAssetId": "aabbccdd-1122-4334-9556-7788990011ab",
"asset": "USDC",
"contractAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"status": "SUBMITTED",
"permitTxId": "0a9f8e7d-6c5b-4a39-8271-6a5b4c3d2e1f",
"skipped": false
}
}{
"success": false,
"errors": [
{
"code": "invalid-request",
"message": "The request contains invalid parameters."
}
]
}{
"success": false,
"errors": [
{
"code": "unauthenticated",
"message": "Please authenticate to perform this action."
}
]
}{
"success": false,
"errors": [
{
"code": "forbidden",
"message": "You do not have permission to access this resource."
}
]
}{
"success": false,
"errors": [
{
"code": "account-not-found",
"message": "The requested resource was not found."
}
]
}{
"success": false,
"errors": [
{
"code": "concurrent-modification",
"message": "This request has been modified by another user. Please refresh and try again."
}
]
}{
"success": false,
"errors": [
{
"code": "internal-error",
"message": "An unexpected error occurred. Please try again later."
}
]
}Permits
Submit a signed permit
Submit an EIP-712 signature to grant a gasless token allowance.
POST
/
accounts
/
{accountId}
/
wallets
/
{walletId}
/
permits
Submit signed permit
curl --request POST \
--url https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"supportedAssetId": "aabbccdd-1122-4334-9556-7788990011ab",
"signature": {
"v": "28",
"r": "0x1111111111111111111111111111111111111111111111111111111111111111",
"s": "0x2222222222222222222222222222222222222222222222222222222222222222"
}
}
'import requests
url = "https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits"
payload = {
"supportedAssetId": "aabbccdd-1122-4334-9556-7788990011ab",
"signature": {
"v": "28",
"r": "0x1111111111111111111111111111111111111111111111111111111111111111",
"s": "0x2222222222222222222222222222222222222222222222222222222222222222"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
supportedAssetId: 'aabbccdd-1122-4334-9556-7788990011ab',
signature: {
v: '28',
r: '0x1111111111111111111111111111111111111111111111111111111111111111',
s: '0x2222222222222222222222222222222222222222222222222222222222222222'
}
})
};
fetch('https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'supportedAssetId' => 'aabbccdd-1122-4334-9556-7788990011ab',
'signature' => [
'v' => '28',
'r' => '0x1111111111111111111111111111111111111111111111111111111111111111',
's' => '0x2222222222222222222222222222222222222222222222222222222222222222'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits"
payload := strings.NewReader("{\n \"supportedAssetId\": \"aabbccdd-1122-4334-9556-7788990011ab\",\n \"signature\": {\n \"v\": \"28\",\n \"r\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"s\": \"0x2222222222222222222222222222222222222222222222222222222222222222\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"supportedAssetId\": \"aabbccdd-1122-4334-9556-7788990011ab\",\n \"signature\": {\n \"v\": \"28\",\n \"r\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"s\": \"0x2222222222222222222222222222222222222222222222222222222222222222\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venlyfinance.com/v1/accounts/{accountId}/wallets/{walletId}/permits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supportedAssetId\": \"aabbccdd-1122-4334-9556-7788990011ab\",\n \"signature\": {\n \"v\": \"28\",\n \"r\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"s\": \"0x2222222222222222222222222222222222222222222222222222222222222222\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"result": {
"id": "11aa22bb-33cc-4dd4-9ee5-66ff77aa88bb",
"supportedAssetId": "aabbccdd-1122-4334-9556-7788990011ab",
"asset": "USDC",
"contractAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"status": "SUBMITTED",
"permitTxId": "0a9f8e7d-6c5b-4a39-8271-6a5b4c3d2e1f",
"skipped": false
}
}{
"success": false,
"errors": [
{
"code": "invalid-request",
"message": "The request contains invalid parameters."
}
]
}{
"success": false,
"errors": [
{
"code": "unauthenticated",
"message": "Please authenticate to perform this action."
}
]
}{
"success": false,
"errors": [
{
"code": "forbidden",
"message": "You do not have permission to access this resource."
}
]
}{
"success": false,
"errors": [
{
"code": "account-not-found",
"message": "The requested resource was not found."
}
]
}{
"success": false,
"errors": [
{
"code": "concurrent-modification",
"message": "This request has been modified by another user. Please refresh and try again."
}
]
}{
"success": false,
"errors": [
{
"code": "internal-error",
"message": "An unexpected error occurred. Please try again later."
}
]
}Submits the
v/r/s signature for a permit message. It moves PENDING → SUBMITTED → CONFIRMED (poll GET .../permits); once all of a wallet’s permits are CONFIRMED the wallet becomes ACTIVE. Re-submitting an already-confirmed permit returns 409.
The signature must recover to the wallet
owner, or the permit settles as FAILED. The call returns HTTP 200 with result.status — poll SUBMITTED → CONFIRMED. See Approving transfers without gas.Authorizations
OAuth2 client credentials flow. Token endpoints:
Path Parameters
Unique account identifier
Unique wallet identifier
Body
application/json
Was this page helpful?
⌘I

