Skip to content

Authentication

Michael Sagnes edited this page Sep 2, 2023 · 1 revision

Sign In

Generic badge

Request

{{BASE}}/api/auth/signin

Body

raw (json)

{
    "email": "john.doe@mail.com",
    "password": "johnsprivatepassword"
}

Response

{
    "api": "Instream API v.1.0",
    "code": 200,
    "status": "Success",
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyN2Q4ODY4ZTMwMDc3Y2E4YjhiMjRjMSIsImlhdCI6MTY5MzY5MTcxMywiZXhwIjoxNjkzNzc4MTEzfQ.e1QJ3iUUAM3QeZ4GAT3cGSTeTGHqsqa9UHLb8ipufp4",
    "message": "Successful login!"
}

Access token is required for all other requests made through the API. Should be stored as a request header x-access-token. If any naming of the token applies, simply name it token.


Back to ToC

Clone this wiki locally