simtrunkDocs
Banks

Invite a bank again

Requires the scope `banks:write`.

POST
/v1/banks/{id}/invite

Requires the scope banks:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key, or an access token for one, through the API gateway.

Path Parameters

id*string

Request Body

application/json
  1. body
label?string

The bank's name on the dashboard (POST /api/banks/invite only).

address?string

The gRPC public listener's host:port (e.g. cell.example.com:8443), where a gRPC bank enrols and attaches. Required unless the link reaches the gateway over HTTPS only; then the gateway URL's host on 443 (or its port).

valid_for?string

How long the one-time code lasts: a duration (30m, 24h; 1m to 168h), or never (until its single use). Default 10m.

link?

How the bank links (docs/simserve.md "How a bank enrols and links"). Empty: gRPC to address, unless the gateway has a public web URL (ADR 0077), which makes the default a WebSocket there.

Response Body

OK

application/json
  1. response
bank_id*integer
token*string

st1_ and base64url JSON: a (address), c (one-time code), f (the CA's SHA-256), n (the server name, a hosted tenant's .remsim.simtrunk), l (the link).

command*string

simserve enroll

install*string

One command that installs simserve, enrols it and runs it as a service.

expires_at?string

Absent: never.

Formatdate-time
curl -X POST 'https://api.simtrunk.com/v1/banks/string/invite' \  -H 'Content-Type: application/json' \  -d '{}'
{  "bank_id": 0,  "token": "string",  "command": "string",  "install": "string",  "expires_at": "2019-08-24T14:15:22Z"}

How is this guide?