Company Users API
Get Users
GET /v2/users/[user_id]
Optional Parameters
- user_id - If omitted then all users will be returned.
Sample Response
{
"data": {
"user_id": "1234",
"email": "johndoe@example.com",
"first_name": "John",
"last_name": "Doe",
"avatar": "http://static.projectbubble.com/static/uploads/avatars/758937e23364fa1d90de433f59f3e232.jpg",
"notifications": "1",
"last_company_id": "321",
"date_created": "2014-08-15 09:03:20"
}
}
"data": {
"user_id": "1234",
"email": "johndoe@example.com",
"first_name": "John",
"last_name": "Doe",
"avatar": "http://static.projectbubble.com/static/uploads/avatars/758937e23364fa1d90de433f59f3e232.jpg",
"notifications": "1",
"last_company_id": "321",
"date_created": "2014-08-15 09:03:20"
}
}
Example Call
curl -X GET "https://api.projectbubble.com/v2/users/1234" \
-H "domain: example.projectbubble.com" \
-H "key: 27838413e610417bd866352767fe322ca97d94c8"
-H "domain: example.projectbubble.com" \
-H "key: 27838413e610417bd866352767fe322ca97d94c8"
Response Codes
200 - OK or "No records found"
Get Teams
GET /v2/teams
Sample Response
{
"data": {
"team_id": "10",
"team_name": "Content",
"color": "ffc600",
"users": [
{
"user_id": "1234",
"user_name": "John Doe"
},
{
"user_id": "1235",
"user_name": "Jane Doe"
}
]
}
}
"data": {
"team_id": "10",
"team_name": "Content",
"color": "ffc600",
"users": [
{
"user_id": "1234",
"user_name": "John Doe"
},
{
"user_id": "1235",
"user_name": "Jane Doe"
}
]
}
}
Example Call
curl -X GET "https://api.projectbubble.com/v2/teams" \
-H "domain: example.projectbubble.com" \
-H "key: 27838413e610417bd866352767fe322ca97d94c8"
-H "domain: example.projectbubble.com" \
-H "key: 27838413e610417bd866352767fe322ca97d94c8"
Response Codes
200 - OK
401 - Teams not found
401 - Teams not found
Get Company
GET /v2/company
Parameters
Accepts no parameters
Sample Response
{
"data": {
"company_id": "321",
"company_name": "The Example Company",
"domain": "example.projectbubble.com",
"address1": "2117 Donec",
"address2": "Park Road",
"city": "Miami",
"state": "Florida",
"postcode": "77930",
"country": "United States",
"currency": "USD",
"phone": "1-541-754-3010",
"signature": null,
"logo": "",
"language": "english",
"timezone": "UTC",
"date_order": "MD",
"first_day": "0",
"round_billable_hours": "1",
"default_order": "0",
"auto_ids": "0",
"progress_type": "1",
"billing_email": null,
"custom_header_bg": null,
"custom_css": null,
"invoice_footer": null,
"estimate_footer": null,
"invoice_email_template": null,
"estimate_email_template": null,
"superuser_id": "2",
"date_created": "2014-08-14 15:20:06",
"users": [
{
"user_id": "1234",
"user_name": "John Doe"
},
{
"user_id": "1235",
"user_name": "Jane Doe"
}
]
}
}
"data": {
"company_id": "321",
"company_name": "The Example Company",
"domain": "example.projectbubble.com",
"address1": "2117 Donec",
"address2": "Park Road",
"city": "Miami",
"state": "Florida",
"postcode": "77930",
"country": "United States",
"currency": "USD",
"phone": "1-541-754-3010",
"signature": null,
"logo": "",
"language": "english",
"timezone": "UTC",
"date_order": "MD",
"first_day": "0",
"round_billable_hours": "1",
"default_order": "0",
"auto_ids": "0",
"progress_type": "1",
"billing_email": null,
"custom_header_bg": null,
"custom_css": null,
"invoice_footer": null,
"estimate_footer": null,
"invoice_email_template": null,
"estimate_email_template": null,
"superuser_id": "2",
"date_created": "2014-08-14 15:20:06",
"users": [
{
"user_id": "1234",
"user_name": "John Doe"
},
{
"user_id": "1235",
"user_name": "Jane Doe"
}
]
}
}
Example Call
curl -X GET "https://api.projectbubble.com/v2/company" \
-H "domain: example.projectbubble.com" \
-H "key: 27838413e610417bd866352767fe322ca97d94c8"
-H "domain: example.projectbubble.com" \
-H "key: 27838413e610417bd866352767fe322ca97d94c8"
Response Codes
200 - OK
401 - Company not found
401 - Company not found
© 2005 - 2024 ProProfs