Returns the connection status between the authenticated user and the specified user. The response shape varies depending on whether there is no connection, a pending request, an accepted connection, or a declined request.
Path Parameters
The Replyke user ID (UUID) of the other user.
Response
On success, returns HTTP 200. The shape depends on the connection state:
No connection:
Pending request:
"sent" if the authenticated user sent the request; "received" if they received it.
ID of the connection record.
ISO timestamp of when the request was sent.
Accepted (connected):
ID of the connection record.
ISO timestamp of when the connection was accepted.
ISO timestamp of the original request.
Declined:
"sent" or "received" — perspective of the authenticated user.
ID of the connection record.
ISO timestamp of when the request was declined.
Error Responses
{
"error" : "Cannot check connection status with yourself" ,
"code" : "connection/self-check"
}
See Also