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 | Header | Value | | --- | --- | | Content-Type | application/json | --- ## Body (raw JSON) Send the request body as **raw JSON**. | Field | Type | Required | Description | | --- | --- | --- | --- | | `UserToken` | string | Yes | Platform token used to authenticate and generate a session token | Example request body: ``` json { "UserToken": "platform token" } ``` --- ## Sample Request ``` bash 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**. ``` json { "access_token": "{{vault:json-web-token}}", "token_type": "bearer", "expires_in": 86400 } ``` --- ## Response Fields | Field | Type | Description | | --- | --- | --- | | `access_token` | string | Generated session access token | | `token_type` | string | Authentication type (Bearer) | | `expires_in` | integer | Token expiration time in seconds | --- ## Notes - The returned `access_token` must be used in the `Authorization` header for all protected API requests. Example: ``` http 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