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.
URL: https://api.stringeex.com/v1/account
HTTP method: POST
POST data (body):
{
"email": "YOUR_EMAIL",
"password": "YOUR_PASSWORD"
}
Field | Type | Required | Description |
---|---|---|---|
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"
}
POST /v1/contact HTTP/1.1
Host: https://api.stringeex.com
X-STRINGEE-AUTH: auth_token
Accept: application/json
{
...
}
POST /v1/contact?access_token=auth_token HTTP/1.1
Host: https://api.stringeex.com
Accept: application/json
{
...
}