Skip to content

Instantly share code, notes, and snippets.

@dmennis
Created October 15, 2019 19:52
Show Gist options
  • Save dmennis/4d0fcee9cb198640871f4892a8ae86b9 to your computer and use it in GitHub Desktop.
Save dmennis/4d0fcee9cb198640871f4892a8ae86b9 to your computer and use it in GitHub Desktop.
cURL command for creating a new user with SingularKey
// (POST) Create NEW User (createUser) - Appears to be indopotent
// Doc: https://devapi.singularkey.com/docs/index.html?http#createuser
curl -X POST \
https://devapi.singularkey.com/v1/users/ \
-H 'Accept: application/json' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 58' \
-H 'Content-Type: application/json' \
-H 'Host: devapi.singularkey.com' \
-H 'User-Agent: PostmanRuntime/7.17.1' \
-H 'cache-control: no-cache' \
-H 'x-sk-api-key: <YOUR-SINGULARKEY-API-KEY-HERE>' \
-d '{
"username": "Dennis"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment