cURL
curl --request GET \ --url https://api.replyke.com/api/v6/:projectId/users/:userId/connection
Check connection status with another user
userId
string
Authorization
GET /users/user-uuid-123/connection Authorization: Bearer <ACCESS_TOKEN>
{ "status": "none" }
{ "status": "pending", "type": "sent", "connectionId": "connection-uuid", "createdAt": "2024-01-01T12:00:00.000Z" }
{ "status": "pending", "type": "received", "connectionId": "connection-uuid", "createdAt": "2024-01-01T12:00:00.000Z" }
{ "status": "connected", "connectionId": "connection-uuid", "connectedAt": "2024-01-01T12:05:00.000Z", "requestedAt": "2024-01-01T12:00:00.000Z" }
{ "status": "declined", "type": "sent", "connectionId": "connection-uuid", "respondedAt": "2024-01-01T12:05:00.000Z" }
{ "status": "declined", "type": "received", "connectionId": "connection-uuid", "respondedAt": "2024-01-01T12:05:00.000Z" }
{ "error": "Invalid userId", "code": "connection/invalid-user-id" }
{ "error": "Cannot check connection status with yourself", "code": "connection/self-check" }
{ "error": "Internal server error", "code": "connection/server-error" }