Teams API reference
Get a team list or team details
Section titled “Get a team list or team details”curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams?account_id=ACCOUNT_IDcurl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/IDReturns a list of teams
{ "id": 1, "name": "The Avengers", "created_at": "2013-01-11T15:40:35Z", "owner": { "id": 1, "email": "thor@example.org", "name": "Thor" }, "members": [...], "projects": [...], "invitations": [...]}If the account_id parameter is not supplied when requesting the list of teams,
all teams will be returned across all accounts to which the provided AUTH_TOKEN
has access.
Create a team
Section titled “Create a team”curl -u AUTH_TOKEN: -X POST -H 'Content-type: application/json' -d '{"team":{"name":"My team"}}' https://app.honeybadger.io/v2/teams?account_id=ACCOUNT_IDYou can specify these fields:
| Field name | Type | Description |
|---|---|---|
name | string |
If the account_id query parameter is not provided, the team will be associated
with the first account accessible by the user associated with the AUTH_TOKEN.
Update a team
Section titled “Update a team”curl -u AUTH_TOKEN: -X PUT -H 'Content-type: application/json' -d '{"team":{"name":"Updated team name"}}' https://app.honeybadger.io/v2/teams/IDDelete a team
Section titled “Delete a team”curl -u AUTH_TOKEN: -X DELETE https://app.honeybadger.io/v2/teams/IDGet a list of team members or team member details
Section titled “Get a list of team members or team member details”curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/ID/team_membersReturns all the members or a single team member for the given team:
{ "id": 1, "created_at": "2012-12-13T15:00:47Z", "admin": true, "name": "", "email": "westley@honeybadger.io"}Update a team member
Section titled “Update a team member”curl -u AUTH_TOKEN: -X PUT -H 'Content-type: application/json' -d '{"team_member":{"admin":true}}' https://app.honeybadger.io/v2/teams/ID/team_members/IDThe list of valid fields is as follows:
| Field name | Type | Description |
|---|---|---|
admin | boolean |
Delete a team member
Section titled “Delete a team member”curl -u AUTH_TOKEN: -X DELETE https://app.honeybadger.io/v2/teams/ID/team_members/IDCreate a team invitation
Section titled “Create a team invitation”curl -u AUTH_TOKEN: -X POST -H 'Content-type: application/json' \ -d '{"team_invitation":{"email":"inigo@honeybadger.io"}}' \ https://app.honeybadger.io/v2/teams/ID/team_invitationsYou can specify these fields:
| Field name | Type | Description |
|---|---|---|
email | string | The invited user’s email address. |
admin | boolean | (Optional) Set this to true to make the invited user a team admin. |
message | string | (Optional) The message to be included in the invitation email. |
Returns the created team invitation:
{ "id": 9, "token": "e62394d2", "email": "inigo@honeybadger.io", "created_by": { "email": "westley@honeybadger.io", "name": "Westley" }, "accepted_by": null, "admin": false, "accepted_at": null, "created_at": "2013-01-08T15:42:16Z", "message": null}Update a team invitation
Section titled “Update a team invitation”curl -u AUTH_TOKEN: -X PUT -H 'Content-type: application/json' \ -d '{"team_invitation":{"admin": true}}' \ https://app.honeybadger.io/v2/teams/ID/team_invitations/IDYou can specify either of these fields:
| Field name | Type | Description |
|---|---|---|
admin | boolean | Set this to true to make the invited user a team admin. |
message | string | The message to be included in the invitation email. |
Get a team invitation list or team invitation details
Section titled “Get a team invitation list or team invitation details”curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/ID/team_invitationscurl -u AUTH_TOKEN: https://app.honeybadger.io/v2/teams/ID/team_invitations/IDReturns a list of team invitations or a single team invitation for the given team:
{ "id": 9, "token": "e62394d2", "email": "", "created_by": { "email": "westley@honeybadger.io", "name": "Westley" }, "accepted_by": { "email": "inigo@honeybadger.io", "name": "Inigo Montoya" }, "admin": true, "accepted_at": "2013-01-08T15:42:41Z", "created_at": "2013-01-08T15:42:16Z", "message": null}Delete a team invitation
Section titled “Delete a team invitation”curl -u AUTH_TOKEN: -X DELETE https://app.honeybadger.io/v2/teams/ID/team_invitations/ID