Facebook Pixel

What are the auth endpoints in DevTinder?

POST /api/signup (create account, returns user and sets JWT cookie), POST /api/login (authenticate, returns user and sets JWT cookie), and POST /api/logout (clears the JWT cookie).

Verify This Answer

Cross-check this information using these trusted sources:

More FAQs in DevTinder API Endpoints Complete Guide to All Routes and Responses

POST /api/request/send/:status/:toUserId where status is 'interested' or 'ignored'. The endpoint creates a ConnectionRequest document. Returns 201 on success, 400 for invalid status or self-request, 404 if user not found, 409 for duplicate.

GET /api/feed?page=1&limit=10 returns a paginated list of user profiles, excluding the current user, connected users, and users with pending requests. Response includes data array and pagination metadata (page, limit, total, totalPages, hasNextPage).

GET /api/chat/:targetUserId?page=1&limit=50 returns paginated message history between the logged-in user and the target user. Messages are sorted by createdAt in ascending order after being fetched in descending order and reversed.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.