For the complete documentation index, see llms.txt. This page is also available as Markdown.

Users - old

The Users API allows you to create, fetch, update, disconnect, and disassociate users from your partner application. These users are the foundation for routing, identity, and transactions on Reveel PayID.

All endpoints require partner authentication.


Authentication

Authorization: Bearer your-api-key
Content-Type: application/json
Accept: application/json

1. Create user

POST /user/create

Authentication: Required

Description: Creates a new user and associates them with your partner account.

Request Body:

{
  "email": "user@example.com",
  "twitterUsername": "username",
  "walletAddress": "0x123abc456def789ghi"
}

Success Response – 201 Created:

Error Responses:

  • 400 Bad Request

  • 401 Unauthorized

  • 409 Conflict

  • 500 Internal Server Error


2. Get All users

GET /user/list

Authentication: Required

Description: Lists users associated with your partner.

Query Parameters:

  • page: Page number (default: 1)

  • limit: Users per page (default: 20)

Success Response – 200 OK:

Error Responses:

  • 401 Unauthorized

  • 500 Internal Server Error


3. Get a particular user by ID

GET /user/:id

Authentication: Required

Description: Fetches a user by ID if associated with your account.

Success Response – 200 OK:

Error Responses:

  • 401 Unauthorized

  • 404 Not Found

  • 500 Internal Server Error


4. Update user

PUT /user/:id

Authentication: Required

Description: Updates an existing user.

Request Body:

Success Response – 200 OK:

Error Responses:

  • 400 Bad Request

  • 401 Unauthorized

  • 404 Not Found

  • 409 Conflict

  • 500 Internal Server Error


5. Disconnect Wallet

POST /user/:id/disconnect-wallet

Authentication: Required

Description: Disconnects the wallet address of a user.

Success Response – 200 OK:

Error Responses:

  • 400 Bad Request

  • 401 Unauthorized

  • 404 Not Found

  • 500 Internal Server Error


6. Delete user

DELETE /user/:id

Description: Disassociates a user from your partner account (does not delete the user globally).

Success Response – 200 OK:

Error Responses:

  • 401 Unauthorized

  • 404 Not Found

  • 500 Internal Server Error

Last updated

Was this helpful?