How can I programmatically create a new user?

  1. Get client_access_token with:

    POST/oauth/token?grant_type=client_credentials&client_id=xxx&client_secret=yyy)

  2. Create user with header:

    Authorization: Bearer client_access_token
    POST /api/v1/users

The body should look like this:

{
"id": "unique id which does not yet exist",
"password": "at least 6 digits",
"email": "test@test.de",
"phone": "123456789"
}


All four fields of the body are optional. If you do not give an ID a unique ID is set by finAPI. You can store it from the response body.
The same is true for the password.
Email and telephone are optional fields and can remain empty.

See the "body schema" of the "create a new user" service in swagger for more details.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk