Skip to navigation

Authenticate

View as Markdown

Authenticate

Exchange a Matrix Customer Portal user’s email and password for a Bearer token.

Request: POST https://one.mtxsci.com/api/1.1/wf/authenticate-v2

Authentication: No existing token is required.

Headers: Content-Type: application/json and Accept: application/json.

Request fields

FieldTypeRequirement
emailStringRequired. User’s login email address.
passwordStringRequired. User’s password.

Response fields

200 OK returns JSON with Content-Type: application/json.

FieldTypeDescription
statusString"success" in the saved example.
response.tokenStringBearer token for all subsequent API requests.
response.user_idStringAuthenticated user identifier.
response.expiresIntegerToken lifetime in seconds. 86400 is 24 hours.

Pass Authorization: Bearer <token> using response.token. Authenticate again when the token expires. In Postman, supply it as the collection’s private local token value. Customer selection follows authentication; this request does not take customer_id.

Request

This endpoint expects an object.
emailstringRequired
Required. User's login email address.
passwordstringRequired
Required. User's password.

Response

OK
statusstringOptional

"success" in the saved example.

responseobjectOptional