All URIs are relative to https://api.hellosign.com/v3.
| Method | HTTP request | Description |
|---|---|---|
| teamAddMember() | PUT /team/add_member | Add User to Team |
| teamCreate() | POST /team/create | Create Team |
| teamDelete() | DELETE /team/destroy | Delete Team |
| teamGet() | GET /team | Get Team |
| teamInfo() | GET /team/info | Get Team Info |
| teamInvites() | GET /team/invites | List Team Invites |
| teamMembers() | GET /team/members/{team_id} | List Team Members |
| teamRemoveMember() | POST /team/remove_member | Remove User from Team |
| teamSubTeams() | GET /team/sub_teams/{team_id} | List Sub Teams |
| teamUpdate() | PUT /team | Update Team |
teamAddMember(teamAddMemberRequest: TeamAddMemberRequest, teamId: string): TeamGetResponseAdd User to Team
Invites a user (specified using the email_address parameter) to your Team. If the user does not currently have a Dropbox Sign Account, a new one will be created for them. If a user is already a part of another Team, a team_invite_failed error will be returned.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
const teamAddMemberRequest: models.TeamAddMemberRequest = {
emailAddress: "george@example.com",
};
apiCaller.teamAddMember(
teamAddMemberRequest,
"4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", // teamId
).then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamAddMember:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamAddMemberRequest | TeamAddMemberRequest | ||
| teamId | string | The id of the team. | [optional] |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamCreate(teamCreateRequest: TeamCreateRequest): TeamGetResponseCreate Team
Creates a new Team and makes you a member. You must not currently belong to a Team to invoke.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
const teamCreateRequest: models.TeamCreateRequest = {
name: "New Team Name",
};
apiCaller.teamCreate(
teamCreateRequest,
).then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamCreate:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamCreateRequest | TeamCreateRequest |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamDelete()Delete Team
Deletes your Team. Can only be invoked when you have a Team with only one member (yourself).
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
apiCaller.teamDelete().catch(error => {
console.log("Exception when calling TeamApi#teamDelete:");
console.log(error.body);
});|This endpoint does not need any parameter. |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamGet(): TeamGetResponseGet Team
Returns information about your Team as well as a list of its members. If you do not belong to a Team, a 404 error with an error_name of "not_found" will be returned.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
apiCaller.teamGet().then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamGet:");
console.log(error.body);
});|This endpoint does not need any parameter. |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamInfo(teamId: string): TeamGetInfoResponseGet Team Info
Provides information about a team.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
apiCaller.teamInfo(
"4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", // teamId
).then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamInfo:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamId | string | The id of the team. | [optional] |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamInvites(emailAddress: string): TeamInvitesResponseList Team Invites
Provides a list of team invites (and their roles).
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
apiCaller.teamInvites().then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamInvites:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| emailAddress | string | The email address for which to display the team invites. | [optional] |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamMembers(teamId: string, page: number, pageSize: number): TeamMembersResponseList Team Members
Provides a paginated list of members (and their roles) that belong to a given team.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
apiCaller.teamMembers(
"4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", // teamId
1, // page
20, // pageSize
).then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamMembers:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamId | string | The id of the team that a member list is being requested from. | |
| page | number | Which page number of the team member list to return. Defaults to 1. |
[optional] [default to 1] |
| pageSize | number | Number of objects to be returned per page. Must be between 1 and 100. Default is 20. |
[optional] [default to 20] |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamRemoveMember(teamRemoveMemberRequest: TeamRemoveMemberRequest): TeamGetResponseRemove User from Team
Removes the provided user Account from your Team. If the Account had an outstanding invitation to your Team, the invitation will be expired. If you choose to transfer documents from the removed Account to an Account provided in the new_owner_email_address parameter (available only for Enterprise plans), the response status code will be 201, which indicates that your request has been queued but not fully executed.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
const teamRemoveMemberRequest: models.TeamRemoveMemberRequest = {
emailAddress: "teammate@dropboxsign.com",
newOwnerEmailAddress: "new_teammate@dropboxsign.com",
};
apiCaller.teamRemoveMember(
teamRemoveMemberRequest,
).then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamRemoveMember:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamRemoveMemberRequest | TeamRemoveMemberRequest |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamSubTeams(teamId: string, page: number, pageSize: number): TeamSubTeamsResponseList Sub Teams
Provides a paginated list of sub teams that belong to a given team.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
apiCaller.teamSubTeams(
"4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", // teamId
1, // page
20, // pageSize
).then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamSubTeams:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamId | string | The id of the parent Team. | |
| page | number | Which page number of the SubTeam List to return. Defaults to 1. |
[optional] [default to 1] |
| pageSize | number | Number of objects to be returned per page. Must be between 1 and 100. Default is 20. |
[optional] [default to 20] |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
teamUpdate(teamUpdateRequest: TeamUpdateRequest): TeamGetResponseUpdate Team
Updates the name of your Team.
import * as fs from 'fs';
import api from "@dropbox/sign"
import models from "@dropbox/sign"
const apiCaller = new api.TeamApi();
apiCaller.username = "YOUR_API_KEY";
// apiCaller.accessToken = "YOUR_ACCESS_TOKEN";
const teamUpdateRequest: models.TeamUpdateRequest = {
name: "New Team Name",
};
apiCaller.teamUpdate(
teamUpdateRequest,
).then(response => {
console.log(response.body);
}).catch(error => {
console.log("Exception when calling TeamApi#teamUpdate:");
console.log(error.body);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamUpdateRequest | TeamUpdateRequest |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]