Login/password

Authentication using login-password pair

POST https://api.directual.com/good/api/v5/auth?appID=?

Query Parameters

Name
Type
Description

appID*

String

API-key

Request Body

Name
Type
Description

provider*

string

rest

username*

string

username

password*

string

password

{
	"result": {
	"token": "8ba4aee8-f509-41d0-9c59-232e828a41a6",
	"username": "test",
	"role": ""
},
	"status": "ok"
}

Get the appID from the API section in your Directual project under API-keys.

The login is the ID of the object from the WebUser data structure, and the password is stored encrypted.

You can use the following cURL command to make a POST request to the Directual API:

{
    "provider": "rest",
    "username": "[email protected]",
    "password": "regress"
}
curl --location --request POST "https://api.directual.com/good/api/v5/auth?appID=?" \
  --header "Content-Type: application/json" \
  --data "{
\"provider\":\"rest\",
\"username\":\"[email protected]\",
\"password\":\"regress\"
}"

Last updated

Was this helpful?