Session status; LiveKit credentials once accepted

get/api/connect/{sessionId}

Request

  • Base URL: https://api.askingahuman.com
  • URL: https://api.askingahuman.com/api/connect/{sessionId}
  • Auth: HTTP bearer

Path parameters

sessionIdstring required

Response

Session

sessionIdstring
status'REQUESTED' | 'ACCEPTED' | 'ACTIVE' | 'ENDED' | 'DECLINED' | 'EXPIRED'
mode'message' | 'video'
blockMinutesinteger
blocksPurchasedinteger
maxBlocksinteger
endsAtstring date-time nullable
canExtendboolean
roomstring

Once ACCEPTED: LiveKit room name

urlstring

Once ACCEPTED: LiveKit server URL

tokenstring

Once ACCEPTED: LiveKit join token. Chat is plain UTF-8 text on the data channel.

billedSecondsinteger

Once ENDED

amountCentsinteger

Once ENDED

receiptstring nullable

Compact JWS (EdDSA, Ed25519) signed by askingahuman: who answered or met you, when, and SHA-256 hashes of the text (sessions: metadata and amount). Verify with the keys at /.well-known/askingahuman-receipt-keys.json. Null while receipts are off.

Example response

{
  "pricing": {
    "currency": "usd"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.