POST /v1/users
Create a user
Create a new Pixela user.
Request Body
Key | Type | Description |
---|---|---|
token | string | [required] A token string used to authenticate as a user to be created. The token string is hashed and saved. Validation rule: [ -~]{8,128} |
username | string | [required] User name for this service. Validation rule: [a-z][a-z0-9-]{1,32} |
agreeTermsOfService | string | [required] Specify yes or no whether you agree to the terms of service. Please see: Terms of service - Japanese version / Terms of service - English version |
notMinor | string | [required] Specify yes or no as to whether you are not a minor or if you are a minor and you have the parental consent of using this service. |
Example
$ curl -X POST https://pixe.la/v1/users -d '{"token":"thisissecret", "username":"a-know", "agreeTermsOfService":"yes", "notMinor":"yes"}'
{"message":"Success.","isSuccess":true}