# Namely

> Manage employee profiles, job titles and tiers, and post announcements to the home feed.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/namely

## Actions

### Comment on an event

Add a comment to a home feed event.

**Inputs**

- Event (`event_id`, text, required): The home feed event.
- Comment (`content`, text, required): The text of the comment, in Markdown.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "events": [],
    "linked": {
      "files": [],
      "profiles": []
    },
    "links": {
      "comments.profile": {
        "type": "example"
      },
      "profile.image": {
        "type": "example"
      }
    },
    "meta": {
      "page": 1,
      "status": 1,
      "use_at_mentions": false
    }
  }
}
```

### Create a job tier

Add a job tier.

**Inputs**

- Title (`title`, text, required): The name of the job tier.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "job_tiers": [],
    "linked": {
      "job_titles": []
    },
    "links": {
      "job_tiers.job_titles": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### Create a job title

Add a job title under a job tier.

**Inputs**

- Title (`title`, text, required): The name of the job title.
- Job tier (`job_tier_id`, text, required): The job tier the title belongs to.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "job_titles": [],
    "linked": {
      "job_tiers": []
    },
    "links": {
      "job_titles.job_tier": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### Create a profile

Add an employee to Namely. Use the pending status to start an onboarding draft when onboarding is turned on.

**Inputs**

- First name (`first_name`, text, required): The employee's first name.
- Last name (`last_name`, text, required): The employee's last name.
- Work email (`email`, text, required): The employee's company email address.
- Personal email (`personal_email`, text, required): The employee's personal email address. Required when the status is pending.
- Status (`user_status`, text, required): Active for a current employee, inactive for a former one, or pending to start an onboarding draft. One of: `active`, `inactive`, `pending`.
- Start date (`start_date`, date, required): The employee's start date.
- Job title (`job_title_id`, text): The employee's job title.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {
      "files": [],
      "groups": [],
      "job_titles": [],
      "teams": []
    },
    "links": {
      "profiles.groups": {
        "type": "example"
      },
      "profiles.image": {
        "type": "example"
      },
      "profiles.job_title": {
        "type": "example"
      },
      "profiles.teams": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1,
      "total_count": 1
    },
    "profiles": []
  }
}
```

### Delete an announcement

Delete an announcement from the home feed.

**Inputs**

- Event (`event_id`, text, required): The home feed event.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "message": "example"
  }
}
```

### Get a group

Get one group and how many profiles belong to it.

**Inputs**

- Group (`group_id`, text, required): The group.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "groups": [],
    "linked": {
      "group_types": []
    },
    "links": {
      "groups.group_types": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "page_copy": "example",
      "page_title": "example",
      "response": 1
    }
  }
}
```

### Get a home feed event

Get one home feed event with its comments.

**Inputs**

- Event (`event_id`, text, required): The home feed event.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "events": [],
    "linked": {
      "comments": [],
      "files": [],
      "profiles": []
    },
    "links": {
      "comments.profile": {
        "type": "example"
      },
      "events.comments": {
        "type": "example"
      },
      "events.file": {
        "type": "example"
      },
      "events.profile": {
        "type": "example"
      },
      "profile.image": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "response": 1,
      "use_appreciations": false,
      "use_comments": false,
      "use_likes": false,
      "use_mentions": false,
      "use_updates": false
    }
  }
}
```

### Get a job title

Get one job title.

**Inputs**

- Job title (`job_title_id`, text, required): The job title.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "job_titles": [],
    "linked": {
      "job_tiers": []
    },
    "links": {
      "job_titles.job_tier": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### Get a profile

Get one employee profile.

**Inputs**

- Profile (`profile_id`, text, required): The employee profile.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {
      "files": [],
      "groups": [],
      "job_titles": [],
      "teams": []
    },
    "links": {
      "profiles.groups": {
        "type": "example"
      },
      "profiles.image": {
        "type": "example"
      },
      "profiles.job_title": {
        "type": "example"
      },
      "profiles.teams": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1,
      "total_count": 1
    },
    "profiles": []
  }
}
```

### Get a report

Get the current rows of a report saved in Namely.

**Inputs**

- Report ID (`report_id`, text, required): The report's ID, the last part of the report's address in Namely.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {},
    "links": {},
    "meta": {},
    "reports": []
  }
}
```

### Get a team

Get one team.

**Inputs**

- Team (`namely_team_id`, text, required): The team.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {
      "categories": []
    },
    "links": {
      "teams.categories": {
        "type": "example"
      }
    },
    "teams": []
  }
}
```

### Get company info

Get the company's name, Namely address and sign-in methods.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "authentications": [],
    "background_url": "example",
    "logo_url": "example",
    "name": "example",
    "permalink": "example"
  }
}
```

### Get my profile

Get the profile of the person whose token is connected.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {
      "files": [],
      "groups": [],
      "job_titles": [],
      "teams": []
    },
    "links": {
      "profiles.groups": {
        "type": "example"
      },
      "profiles.image": {
        "type": "example"
      },
      "profiles.job_title": {
        "type": "example"
      },
      "profiles.teams": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1,
      "total_count": 1
    },
    "profiles": []
  }
}
```

### List group types

List the kinds of group the company uses, such as office location and department.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "group_types": [],
    "linked": {
      "group_types": []
    },
    "links": {
      "group_type.group": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### List groups

List the company's groups, such as office locations and departments.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "groups": [],
    "linked": {
      "group_types": []
    },
    "links": {
      "groups.group_types": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "page_copy": "example",
      "page_title": "example",
      "response": 1
    }
  }
}
```

### List home feed events

List the home feed's announcements, birthdays, work anniversaries and new arrivals.

**Inputs**

- Event type (`event_type`, text): Only list events of this type. One of: `announcement`, `birthday`, `anniversary`, `recent_arrival` (Recent arrival).
- Profile (`profile_id`, text): Only list events about this profile.
- Order (`order`, text): Newest first (desc, the default) or oldest first (asc). One of: `desc`, `asc`.
- Limit (`limit`, number): How many events to return. At least 1.
- After event (`after`, text): The ID of the event to list from. Use the last event of the previous page to get the next one.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "events": [],
    "linked": {
      "comments": [],
      "files": [],
      "profiles": []
    },
    "links": {
      "comments.profile": {
        "type": "example"
      },
      "events.comments": {
        "type": "example"
      },
      "events.file": {
        "type": "example"
      },
      "events.profile": {
        "type": "example"
      },
      "profile.image": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "response": 1,
      "use_appreciations": false,
      "use_comments": false,
      "use_likes": false,
      "use_mentions": false,
      "use_updates": false
    }
  }
}
```

### List job tiers

List the company's job tiers, the levels job titles are grouped under.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "job_tiers": [],
    "linked": {
      "job_titles": []
    },
    "links": {
      "job_tiers.job_titles": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### List job titles

List the company's job titles.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "job_titles": [],
    "linked": {
      "job_tiers": []
    },
    "links": {
      "job_titles.job_tier": {}
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### List profile fields

List the profile fields set up for the company, with the format each one takes.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "fields": [],
    "linked": {
      "sections": []
    },
    "links": {
      "fields.sections": "example"
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### List profiles

List employee profiles, one page at a time, optionally filtered by status, name, email, job title or manager.

**Inputs**

- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many profiles to return on each page, up to 50. Namely returns 30 when blank. From 1 to 50.
- Sort by (`sort`, text): The order to list profiles in. A leading minus sign reverses it, so -created_at lists the newest first. One of: `first_name` (First name), `last_name` (Last name), `created_at` (Created at), `updated_at` (Updated at), `-first_name` (-first name), `-last_name` (-last name), `-created_at` (-created at), `-updated_at` (-updated at).
- Status (`user_status`, text): Only list profiles with this status. One of: `active`, `pending`, `inactive`.
- First name (`first_name`, text): Only list profiles with this first name.
- Last name (`last_name`, text): Only list profiles with this last name.
- Work email (`email`, text): Only list the profile with this company email address.
- Personal email (`personal_email`, text): Only list the profile with this personal email address.
- Job title (`job_title`, text): Only list profiles with this job title, written exactly as it appears in Namely.
- Manager (`reports_to_id`, text): Only list the direct reports of this profile.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {
      "files": [],
      "groups": [],
      "job_titles": [],
      "teams": []
    },
    "links": {
      "profiles.groups": {
        "type": "example"
      },
      "profiles.image": {
        "type": "example"
      },
      "profiles.job_title": {
        "type": "example"
      },
      "profiles.teams": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1,
      "total_count": 1
    },
    "profiles": []
  }
}
```

### List teams

List the company's teams.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {
      "categories": []
    },
    "links": {
      "teams.categories": {
        "type": "example"
      }
    },
    "teams": []
  }
}
```

### Post an announcement

Post an announcement to the Namely home feed.

**Inputs**

- Announcement (`content`, text, required): The text of the announcement, in Markdown. To mention someone, write [Full Name](/people/PROFILE_ID).
- Appreciate mentioned people (`is_appreciation`, true/false): Whether to send an appreciation to everyone mentioned.
- Email everyone (`email_all`, true/false): Whether to email every active employee at their company address. Needs permission to do so.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "events": [],
    "linked": {
      "comments": [],
      "files": [],
      "profiles": []
    },
    "links": {
      "comments.profile": {
        "type": "example"
      },
      "events.comments": {
        "type": "example"
      },
      "events.file": {
        "type": "example"
      },
      "events.profile": {
        "type": "example"
      },
      "profile.image": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "response": 1,
      "use_appreciations": false,
      "use_comments": false,
      "use_likes": false,
      "use_mentions": false,
      "use_updates": false
    }
  }
}
```

### Update a job tier

Rename a job tier.

**Inputs**

- Job tier (`job_tier_id`, text, required): The job tier.
- Title (`title`, text, required): The job tier's new name.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "job_tiers": [],
    "linked": {
      "job_titles": []
    },
    "links": {
      "job_tiers.job_titles": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### Update a job title

Rename a job title or move it to another job tier.

**Inputs**

- Job title (`job_title_id`, text, required): The job title.
- Title (`title`, text, required): The job title's new name.
- Job tier (`job_tier_id`, text, required): The job tier the title belongs to.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "job_titles": [],
    "linked": {
      "job_tiers": []
    },
    "links": {
      "job_titles.job_tier": {
        "type": "example"
      }
    },
    "meta": {
      "count": 1,
      "status": 1
    }
  }
}
```

### Update a profile

Change an employee profile. Fields left blank stay as they are.

**Inputs**

- Profile (`profile_id`, text, required): The employee profile.
- First name (`first_name`, text): The employee's first name.
- Last name (`last_name`, text): The employee's last name.
- Work email (`email`, text): The employee's company email address.
- Personal email (`personal_email`, text): The employee's personal email address. Required when the status is pending.
- Status (`user_status`, text): Active for a current employee, or pending to start an onboarding draft. One of: `active`, `pending`.
- Start date (`start_date`, date): The employee's start date.
- Job title (`job_title_id`, text): The employee's job title.
- Manager (`reports_to_id`, text): The profile the employee reports to.

**Outputs**

- `data` (object): The response from Namely.

**Example output**

```json
{
  "data": {
    "linked": {
      "files": [],
      "groups": [],
      "job_titles": [],
      "teams": []
    },
    "links": {},
    "meta": {
      "count": 1,
      "status": 1
    },
    "profiles": []
  }
}
```
