Registration API
Lets user signup on the platform
Create User
POST
https://www.ondemandstaffing.app/api/v1/sign_up
This endpoint allows you to post new users.
Query Parameters
string
Email of the user. User must not have an account on the platform.
password
string
Must be a unique password and 8 characters or higher.
user_type
string
Must be either 'freelancer' or 'company'. Everything in lowercase. No other forms are accepted.
tenant
string
Tenant key for the App.
Headers
Authentication
string
API Key for the tenant required.
An email is automatically sent to the user's email with a token. User must verify this token before proceeding.
Verify Token
POST
https://www.ondemandstaffing.app/api/v1/email_verification
This method verifies the email address of the user. Account will experience a leash unless their email is confirmed.
Request Body
verification_token
string
Token sent to user's email
tenant
string
Tenant key for the app
id
string
ID of the current user
number
email of the current user
Send optional parameter: 'resend_email' as true to resend email with verification code to user. User should be locked for 24 hours after 10 attempts have been made. Minimum 60 seconds delay required between each request for resending email. Below is an example request.
Last updated
Was this helpful?