Skip to main content

Login with credentials

POST 

https://demo.frigate.video/api/login

Authenticates a user with username and password. Returns a JWT token as a secure HTTP-only cookie that can be used for subsequent API requests. The JWT token can also be retrieved from the response and used as a Bearer token in the Authorization header.

Example using Bearer token:

curl -H "Authorization: Bearer <token_value>" https://frigate_ip:8971/api/profile

Request​

Bodyrequired

    userUser (string)required
    passwordPassword (string)required

Responses​

Successful Response

Schema
    import http.client
    import json

    conn = http.client.HTTPSConnection("demo.frigate.video")
    payload = json.dumps({
    "user": "string",
    "password": "string"
    })
    headers = {
    'Content-Type': 'application/json',
    'Accept': 'application/json'
    }
    conn.request("POST", "/api/login", payload, headers)
    res = conn.getresponse()
    data = res.read()
    print(data.decode("utf-8"))
    Request Collapse all
    Base URL
    https://demo.frigate.video/api
    Body required
    {
      "user": "string",
      "password": "string"
    }
    
    ResponseClear

    Click the Send API Request button above and see the response here!