Authentication API
/signIn
Authenticates your API session and gets a token which you include in all requests in this session.
Whenever you start a new session, first send this request to generate a new token.
Tip
To reach Unravel Server you might need to open an SSH session to your cluster, cluster-name
.
ssh@root cluster-name
POST http://unravel-host
:3000/api/v1/signIn
None.
Name | Type | Description |
---|---|---|
| string | Your username |
| string | Your password |
Name | Type | Description |
---|---|---|
| string | Indicates success or failure. |
| string | The token which you will include in the |
| string |
|
| string |
|
| string | |
| string | |
| string |
Request:
curl -X GET "http://http://myserver.com:3000/api/v1/signIn" -H "accept: application/json" -H "content-type: application/x-www-form-urlencoded" -d "username=admin&password=your-password
"
Response body:
{
"message": "ok",
"token": "long-string
",
"role": "admin",
"readOnly": false,
"tags": "",
"id": "admin",
"username": "admin"
}