Skip to main content
POST
/
v1
/
streams
Open a stream
curl --request POST \
  --url https://api.getsly.ai/v1/v1/streams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "to_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "flow_rate": "<string>",
  "initial_deposit": "<string>",
  "currency": "USDC",
  "buffer": "<string>",
  "metadata": {}
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "from_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "to_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "flow_rate": "<string>",
    "currency": "<string>",
    "wrapped_balance": "<string>",
    "buffer": "<string>",
    "runway_seconds": 123,
    "recipient_balance": "<string>",
    "status": "active",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Body

application/json
from_wallet_id
string<uuid>
required
to_wallet_id
string<uuid>
required
flow_rate
string
required
initial_deposit
string
required
currency
string
default:USDC
buffer
string
metadata
object

Response

Stream opened

data
object
required