Skip to navigation

Get Session Token

View as Markdown

Get Session Token By Platform Token

Generates a session access token using a platform token.
This token is required to authenticate subsequent API requests.

Method: POST
URL: https://business.me-mate.net/partners/login


Headers

HeaderValue
Content-Typeapplication/json

Body (raw JSON)

Send the request body as raw JSON.

FieldTypeRequiredDescription
UserTokenstringYesPlatform token used to authenticate and generate a session token

Example request body:

{
"UserToken": "platform token"
}

Sample Request

curl --request POST "https://business.me-mate.net/partners/login" \
--header "Content-Type: application/json" \
--data '{
"UserToken": "platform token"
}'

Sample Success Response

A successful request typically returns HTTP 200 OK.

{
"access_token": "{{vault:json-web-token}}",
"token_type": "bearer",
"expires_in": 86400
}

Response Fields

FieldTypeDescription
access_tokenstringGenerated session access token
token_typestringAuthentication type (Bearer)
expires_inintegerToken expiration time in seconds

Notes

  • The returned access_token must be used in the Authorization header for all protected API requests.

Example:

Authorization: Bearer {{access_token}}
  • The token expires after 86400 seconds (24 hours).

  • After expiration, a new token must be generated using the platform token.

  • Keep the UserToken secure and do not expose it publicly.

Request

This endpoint expects an object.
UserTokenstringRequired

Response

OK
expires_ininteger
token_typestring
access_tokenstring