Skip to main content
POST
Request Connection
Sends a connection request from the authenticated user to the specified user. An optional message can be included. A notification is sent to the receiving user.

Path Parameters

userId
string
required
The Sublay user ID (UUID) of the user to send a connection request to.

Body Parameters

message
string
Optional message to include with the connection request.

Response

On success, returns HTTP 201 with the created connection record:
id
string
Unique connection record ID (UUID).
status
string
Always "pending" for a new request.
createdAt
string
ISO timestamp of when the request was sent.

Error Responses

See Also