List connections
Lists connections in this project, newest first, optionally only one pack's or one subject's.
GET
/v1/vault/connections
Lists connections in this project, newest first, optionally only one pack's or one subject's.
Authentication
Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)
Query Parameters
limit
integer
optional
query
Page size, from 1 to 100.
cursor
string
optional
query
Opaque cursor from the previous page's `next_cursor`. Omit it for the first page.
pack
string
optional
query
Only connections for this pack.
subject
string
optional
query
Only connections of this end user.
Responses
200
A page of connections.
application/jsonobject
string
REQUIRED
Enum:
listdata
object[]
REQUIRED
Array of:
id
string
REQUIRED
object
string
REQUIRED
Enum:
connectionpack
string | null
REQUIRED
key
string | null
REQUIRED
type
string
REQUIRED
The credential kind, as in pack manifests.
Enum:
api_key, basic, bearer, oauth2, nonelabel
string | null
REQUIRED
subject
string | null
REQUIRED
hosts
string[]
REQUIRED
Hosts that receive the credential; `[]` for a verification-only connection (never injected).
Array of:
string
params
object
REQUIRED
secret_fields
string[]
REQUIRED
Names of the stored secret fields.
Array of:
string
status
string
REQUIRED
`expired` when an OAuth access token passed `expires_at` and could not be refreshed.
Enum:
active, expiredexpires_at
string (date-time) | null
REQUIRED
created_at
string (date-time)
REQUIRED
updated_at
string (date-time)
REQUIRED
last_used_at
string (date-time) | null
REQUIRED
metadata
object
REQUIRED
Up to 16 string key-value pairs you attach to an object for your own use. Keys are 1 to 40 characters of
`A-Z a-z 0-9 _ . : -`; values are at most 500 characters. B3OS never interprets them.
next_cursor
string | null
REQUIRED
400
The request failed validation (`invalid_request`, `invalid_url`).
401
Missing, malformed, expired or revoked credentials (`unauthorized`).
403
Authenticated but not allowed (`forbidden`, `egress_denied`).
429
A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500
Something failed inside B3OS (`internal`). Retry with backoff.
503
The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X GET 'https://beta-api.b3os.org/v1/vault/connections' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/vault/connections', { method: 'GET', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta-api.b3os.org/v1/vault/connections', headers=headers)print(response.json())
200
Response
{ "object": "list", "data": [ { "id": "conn_01m5t6cbgdjs1ketgcqwa2sne8", "object": "connection", "pack": "io.b3os/github", "key": "api", "type": "bearer", "label": "CI bot token", "subject": null, "hosts": [ "api.github.com" ], "params": {}, "secret_fields": [ "token" ], "status": "active", "expires_at": null, "created_at": "2026-10-25T20:10:00.000Z", "updated_at": "2026-10-25T20:10:00.000Z", "last_used_at": "2026-10-25T20:12:41.000Z", "metadata": {} } ], "next_cursor": null}
API Playground
Try this endpoint
GET
/v1/vault/connections