Users
Attributes
| Attribute | Type | Description | |
|---|---|---|---|
id | 
        Integer | 
        Unique identifier in Fakturoid | |
full_name | 
        String | 
        User full name | |
email | 
        String | 
        User email | |
avatar_url | 
        String | 
        User avatar URL | |
default_account | 
        String | 
        
          Default account slug (Only on the /user.json endpoint)
         | 
      |
permission | 
        String | 
        User permission for the current account | |
allowed_scope | 
        Array[String] | 
        
          List of allowed scopes Values: reports, expenses, invoices
         | 
      |
accounts | 
        Array[Object] | 
        
          List of accounts the user has access to (Only on the /user.json endpoint)
         | 
      
- 
    Required attribute (must always be present).
 - 
    Read-only attribute (cannot be changed).
 - 
    Write-only attribute (will not be returned).
 - 
    
    Unmarked attributes are optional and can be omitted during request.
 
Accounts
| Attribute | Type | Description | |
|---|---|---|---|
slug | 
        String | 
        
          Account URL slug Goes to https://app.fakturoid.cz/api/v3/accounts/{slug}/…
         | 
      |
logo | 
        String | 
        Account logo URL | |
name | 
        String | 
        Account name | |
registration_no | 
        String | 
        Account registration number | |
permission | 
        String | 
        Current user account permission | |
allowed_scope | 
        Array[String] | 
        
          List of allowed scopes for current user Values: reports, expenses, invoices
         | 
      
Current User
Request
GET
        https://app.fakturoid.cz/api/v3/user.json
        
      Headers
| Name | Value | 
|---|---|
User-Agent | 
            YourApp (yourname@example.com) | 
          
Response
Status
      200 OK
    Body
{
  "id": 5,
  "full_name": "Alexandr Hejsek",
  "email": "applecorp@applecorp.cz",
  "avatar_url": null,
  "default_account": null,
  "accounts": [
    {
      "slug": "applecorp",
      "logo": "https://app.fakturoid.cz/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--79b81d601305fccdbe4224b8ae76123d59ff1dd2/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjloYm1SZmNHRmtXd2hwQXFRQmFRR01ld2M2REdkeVlYWnBkSGxKSWdsM1pYTjBCanNHVkRvTFpYaDBaVzVrU1NJS2QyaHBkR1VHT3daVU9neGpiMjUyWlhKMFNTSUljRzVuQmpzR1ZBPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--76dc372ccfb5e19eecf036250d169c5e5b87479e/logo.png",
      "name": "Alexandr Hejsek",
      "registration_no": "87654321",
      "permission": "owner",
      "allowed_scope": [
        "invoices",
        "expenses",
        "reports"
      ]
    }
  ]
}
  Users Index
Request
GET
        https://app.fakturoid.cz/api/v3/accounts/{slug}/users.json
        
      Headers
| Name | Value | 
|---|---|
User-Agent | 
            YourApp (yourname@example.com) | 
          
URL Parameters
| Name | Description | Type | Example | 
|---|---|---|---|
slug | 
            Account name | String | 
            applecorp | 
          
Response
Status
      200 OK
    Body
[
  {
    "id": 5,
    "full_name": "Alexandr Hejsek",
    "email": "applecorp@applecorp.cz",
    "avatar_url": null,
    "permission": "owner",
    "allowed_scope": [
      "invoices",
      "expenses",
      "reports"
    ]
  },
  {
    "id": 7,
    "full_name": "Ondřej Hejsek",
    "email": "testdph3@test.cz",
    "avatar_url": null,
    "permission": "read",
    "allowed_scope": [
      "invoices"
    ]
  },
  …
]