Suggestions

close search

StringeeX REST API Authentication

StringeeX REST API calls must be authenticated using a custom HTTP header: X-STRINGEE-AUTH or URL Parameter: access_token along with a JSON web token.

Get auth_token from API Login

URL: https://api.stringeex.com/v1/account

HTTP method: POST

POST data (body):

{
    "email": "YOUR_EMAIL",
    "password": "YOUR_PASSWORD"
}
Field Type Required Description
email Text Yes StringeeX Email
password Text Yes StringeeX Password

Sample request:

{
    "email": "[email protected]",
    "password": "password@123"
}

Response:

{
    "r": "response_code",
    "msg": "response_message"
}
Field Type Required Description
r Number Yes r = 0 is success, other value is not success
msg Text Yes The message of the response
auth_token Text No Used to call StringeeX REST API

Sample response:

{
    "portals": [
        {
        "auth_token": auth_token,
        ...
        }
    ],
    "r": 0,
    "msg": "Success"
}

Sample request using X-STRINGEE-AUTH header:

POST /v1/contact HTTP/1.1
Host: https://api.stringeex.com
X-STRINGEE-AUTH: auth_token
Accept: application/json

{
    ...
}

Sample request using URL Parameter:

POST /v1/contact?access_token=auth_token HTTP/1.1
Host: https://api.stringeex.com
Accept: application/json

{
    ...
}