Skip to main content
POST
/
api
/
users
/
login
login
curl --request POST \
  --url https://api.sippet.ai/api/users/login \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "email": "<string>",
      "password": "<string>"
    },
    "relationships": {},
    "type": "User"
  }
}
'
{
  "data": {
    "id": "<string>",
    "type": "<string>",
    "attributes": {
      "email": "<string>",
      "full_name": "<string>",
      "sip_username": "<string>"
    },
    "relationships": {
      "organisation": {
        "data": {
          "id": "<string>",
          "type": "<string>",
          "meta": {}
        }
      },
      "organisations": {
        "data": [
          {
            "id": "<string>",
            "type": "<string>",
            "meta": {}
          }
        ]
      },
      "sip_user": {
        "data": {
          "id": "<string>",
          "type": "<string>",
          "meta": {}
        }
      }
    }
  },
  "included": [
    "<unknown>"
  ],
  "meta": {}
}

Authorizations

Authorization
string
header
required

JWT for bearer authentication

Query Parameters

include
string

Relationship paths to include in the response

Pattern: ^()(,())*$
fields
object

Limits the response fields to only those listed for each type

Example:
{ "User": "id,full_name,email" }

Body

application/vnd.api+json

Request body for the login operation on User resource

data
object
required

Response

Success

data
object

A "Resource object" representing a User

included
any[]
meta
object