User

User module apis

Wallet login

post
/users/wallet/login

This endpoint allows user to login through any crypto wallet.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Body
entityIdstringRequiredExample: e-123
walletAddressstringRequiredExample: e-x012121212
signaturestringRequiredExample: e-x012121212-121212
tokenstringRequiredExample: token-used-for-signature
refreshTokenstringOptionalExample: dumy-refresh-token
Responses
200

User already exists

application/json
post
/users/wallet/login

Send login OTP

post
/users/email-login/send-otp

This endpoint sends a login OTP to the given email address.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Body
emailstringRequiredExample: [email protected]
Responses
200

Successful response

application/json
post
/users/email-login/send-otp

Verify login OTP

post
/users/email-login/verify-otp

This endpoint verifies the login OTP sent via email.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Body
emailstringRequiredExample: dummy-email
otpnumberRequiredExample: 123456
entityIdstringOptionalExample: dummt-entityid
Responses
200

User already exists

application/json
post
/users/email-login/verify-otp

Google login

post
/users/google/login

This endpoint allows user to login through google.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Body
codestringRequiredExample: dummy-code
redirectUristringRequiredExample: https://redirect.com/google
entityIdstringOptionalExample: dummt-entityid
Responses
200

User already exists

application/json
post
/users/google/login

login using external source

post
/users/external/login

This endpoint allows user to login through any external source.

Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
entity-authentication-tokenstringOptional

The authentication token to authorize requests on behalf of an entity.

Example: dummy-token
user-agentstringRequired
Body
entityIdstringOptionalExample: e-123
externalUserIdstringOptionalExample: example-x012121212
walletAddressstringOptionalExample: abc@
emailstringOptional
Responses
200

User created

application/json
post
/users/external/login

Create new custom user.

post
/users/custom-ids

This endpoint allows to create a custom user with custom userId and a platform name.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Body
customUserIdstringRequiredExample: dummy-userid
customPlatformstringRequiredExample: instagram
entityIdstringRequiredExample: dummt-entityid
Responses
200

User already exists

application/json
post
/users/custom-ids

Refresh user token

post
/entities/{entityId}/users/{userId}/refresh-token

This endpoint refreshes the user token for a specified entity and user.

Path parameters
entityIdstringRequired
userIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
refreshTokenstringOptionalExample: refresh-token-value
Responses
200

Successful response

application/json
post
/entities/{entityId}/users/{userId}/refresh-token

Update user details

post
/users/{userId}

This endpoint allows the user to update their details.

Path parameters
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
Body
namestringOptionalExample: Jon Doe
imageUrlstringOptionalExample: https://www.myimage.com
bannerUrlstringOptionalExample: https://www.mybanner.com
locationstringOptionalExample: India
expertisestring[]OptionalExample: ["Java","CPP","JavaScript"]
goalsstring[]OptionalExample: ["To become a senior software engineer","contribute to open-source projects"]
interestsstring[]OptionalExample: ["Photography","traveling","reading"]
aboutstringOptionalExample: Jon is a passionate software developer with several years of experience in building web applications.
currentWorkstringOptionalExample: Software engineer at XYZ Tech
funFactsstringOptionalExample: Once climbed Mount Kilimanjaro and has performed at local music festivals with my band.
Responses
200

Successful response

application/json
post
/users/{userId}

Get user details

get
/users/{userId}

This endpoint retrieves the details of a specific user.

Path parameters
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/users/{userId}

Get user details for email

get
/users/email/{email}

This endpoint retrieves the details of a specific user by their email.

Path parameters
emailstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
Responses
200

Successful response

application/json
get
/users/email/{email}

Get user details for wallet address

get
/users/address/{walletAddress}

This endpoint retrieves the details of a specific user by their wallet address.

Path parameters
walletAddressstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
Responses
200

Successful response

application/json
get
/users/address/{walletAddress}

Get user's entities

get
/users/{userId}/entities

This endpoint retrieves all the entities the user is part of.

Path parameters
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
Responses
200

Successful response

application/json
get
/users/{userId}/entities

Get user's admin entities

get
/users/{userId}/admin-entities

This endpoint retrieves all the entities the user is an admin of.

Path parameters
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
Responses
200

Successful response

application/json
get
/users/{userId}/admin-entities

Select current admin entity

post
/users/{userId}/admin-entities

This endpoint updates the current admin entity of the user.

Path parameters
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
Body
entityIdstringOptionalExample: e-exampleEnittyId
Responses
200

Successful response

application/json
post
/users/{userId}/admin-entities

Get user's connected socials

get
/entities/{entityId}/users/{userId}/connected-socials

This endpoint retrieves all the socials the user is connected to.

Path parameters
entityIdstringRequired
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/users/{userId}/connected-socials

Last updated