Users
Resources and actions to manage the users of an organization
Endpoints
Get authentication organization and user information
GET
https://api.upcoach.com/me/
Returns the user and organization information for the API key used for authentication.
List team members
GET
https://api.upcoach.com/team-members
Returns a list of team members in the organization.
Query Parameters
Name | Type | Description |
---|---|---|
filter[id] | String | Filter by user ID, leave empty to return all |
filter[email] | String | Filter by user email, leave empty to return all. |
filter[role] | String | Filter by team role, leave empty to return all. Available roles: |
sort | String | Available sort fields: |
List clients
GET
https://api.upcoach.com/clients
Returns a list of clients in the organization
Query Parameters
Name | Type | Description |
---|---|---|
filter[id] | String | User ID |
filter[email] | String | User email address |
sort | String | Available sort fields: |
Add new client
POST
https://api.upcoach.com/clients
Adds a new client to the organization
Request Body
Name | Type | Description |
---|---|---|
name* | String | Full name |
email* | String | Email address |
password | String | Password (min. 8 characters) |
timezone | String | Timezone (any value from tz database) |
Update a client
PUT
https://api.upcoach.com/clients/<user_id>
Updates a client's custom field information.
Path Parameters
Name | Type | Description |
---|---|---|
<user_id>* | String | User ID |
Request Body
Name | Type | Description |
---|---|---|
info* | Object | A key-value object that has field slugs as its keys and values for the new information to be saved |
Resource Objects
User
Property | Type | Description |
---|---|---|
id | string | User ID |
name | string | User's full name |
string | User's email address | |
avatar | string | User avatar URL |
timezone | string | User's timezone |
Team Member, Client and Program Member resource objects inherit properties from this User resource object.
Organization
Property | Type | Description |
---|---|---|
id | string | Organization ID |
name | string | Organization name |
subdomain | string | Organization subdomain |
url_home | string | Organization home URL |
created_at | integer | Organization created at (Unix timestamp) |
Team Member
Inherits all the properties of the User Resource and extends it with the following properties
Property | Type | Description |
---|---|---|
role | string | Team role, can be |
created_at | integer | Team member created at (Unix timestamp) |
Client
Inherits all the properties of the User Resource and extends it with the following properties
Property | Type | Description |
---|---|---|
created_at | integer | Client created at (Unix timestamp) |
info | object or null | A key-value object listing all the client custom fields. If there are no custom fields, it will be a null value |
Last updated