For the complete documentation index, see llms.txt. This page is also available as Markdown.

User


Generic information about user

get

Get id, email, name, image and activation status

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Your ByteNite access token

Responses
200

A successful response.

get/user
GET /v1/auth/user HTTP/1.1
Host: api.bytenite.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "user": {
    "id": "acc2e66f-fa31-4e73-9c49-eedee36fcf32",
    "createdAt": "2020-01-01T00:00:00Z",
    "lastLogin": "2020-01-01T00:00:00Z",
    "displayName": "John Doe",
    "email": "[email protected]",
    "settings": {},
    "photoUrl": "https://example.com/photo.jpg",
    "providerId": "google",
    "emailVerified": true,
    "customClaims": {
      "role": "admin"
    },
    "role": "ROLE_NONE",
    "firstName": "John",
    "lastName": "Doe",
    "contactInfo": {
      "company": "ByteNite",
      "jobTitle": "Software Engineer",
      "phoneNumber": "1234567890",
      "address1": "1234 Main St",
      "address2": "Apt 123",
      "city": "San Francisco",
      "state": "CA",
      "zip": "94107",
      "country": "United States"
    },
    "disabled": false,
    "isOnboarded": true,
    "onboardingInfo": [
      {
        "step": 1,
        "answer": {}
      }
    ],
    "userName": "johndoe"
  }
}


Set user info

patch

Set editable user info

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Your ByteNite access token

Body
firstNamestringOptionalExample: John
lastNamestringOptionalExample: Doe
userNamestringOptionalExample: johndoe
Responses
200

A successful response.

patch/user
PATCH /v1/auth/user HTTP/1.1
Host: api.bytenite.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 318

{
  "contactInfo": {
    "company": "ByteNite",
    "jobTitle": "Software Engineer",
    "phoneNumber": "1234567890",
    "address1": "1234 Main St",
    "address2": "Apt 123",
    "city": "San Francisco",
    "state": "CA",
    "zip": "94107",
    "country": "United States"
  },
  "firstName": "John",
  "lastName": "Doe",
  "userName": "johndoe",
  "onboardingInfo": [
    {
      "step": 1,
      "answer": {}
    }
  ]
}
{
  "user": {
    "id": "acc2e66f-fa31-4e73-9c49-eedee36fcf32",
    "createdAt": "2020-01-01T00:00:00Z",
    "lastLogin": "2020-01-01T00:00:00Z",
    "displayName": "John Doe",
    "email": "[email protected]",
    "settings": {},
    "photoUrl": "https://example.com/photo.jpg",
    "providerId": "google",
    "emailVerified": true,
    "customClaims": {
      "role": "admin"
    },
    "role": "ROLE_NONE",
    "firstName": "John",
    "lastName": "Doe",
    "contactInfo": {
      "company": "ByteNite",
      "jobTitle": "Software Engineer",
      "phoneNumber": "1234567890",
      "address1": "1234 Main St",
      "address2": "Apt 123",
      "city": "San Francisco",
      "state": "CA",
      "zip": "94107",
      "country": "United States"
    },
    "disabled": false,
    "isOnboarded": true,
    "onboardingInfo": [
      {
        "step": 1,
        "answer": {}
      }
    ],
    "userName": "johndoe"
  }
}

Last updated

Was this helpful?