Skip to main content
POST
https://api.onstacks.io
/
v1
/
address-book
Create address book entry
curl --request POST \
  --url https://api.onstacks.io/v1/address-book \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "address": "<string>",
  "network_code": "<string>",
  "asset_symbol": "<string>",
  "trust_status": "trusted",
  "notes": "<string>"
}
'
{
  "data": {
    "entry": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "label": "<string>",
      "address": "<string>",
      "network_code": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "created_by": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "email": "jsmith@example.com",
        "display_name": "<string>"
      },
      "asset_symbol": "<string>",
      "notes": "<string>",
      "archived_at": "2023-11-07T05:31:56Z"
    }
  },
  "error": null,
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Workspace API key. Send it as Authorization: Bearer <api_key>.

Body

application/json
label
string
required
Maximum string length: 80
address
string
required
network_code
string
required
asset_symbol
string
trust_status
enum<string>
default:trusted
Available options:
trusted,
untrusted,
blocked
notes
string
Maximum string length: 500

Response

Address book entry created

data
object
required
error
null
required
request_id
string
required