Skip to content

Commit 1780e39

Browse files
committed
Add email to POST /users response
1 parent 369375e commit 1780e39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/API.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,14 @@ Authorization: Bearer QWxhZGRpbjpPcGVuU2VzYW1l...
178178
}
179179
```
180180
### Response
181-
Successful requests will produce a "201 Created" response with a body containing an activation url.
181+
Successful requests will produce a "201 Created" response with a body containing the user's email and an activation url.
182182
This activation url will contain a temporary session token that will be exchanged by a long live token on user activation:
183183
```ssh
184184
HTTP/1.1 201 Created
185185
Connection: close
186186
{
187-
"activation_url": "/v1/users/InR5cCI6IkpXVCJ?auth=BWdsaxhZGRpbjpPcGVuU2VzYW1l"
187+
"email": "[email protected]",
188+
"activation_url": "/v1/users/InR5cCI6IkpXVCJ/activate?auth=BWdsaxhZGRpbjpPcGVuU2VzYW1l"
188189
}
189190
```
190191

0 commit comments

Comments
 (0)