TeamViewer API Documentation
TeamViewer API Documentation
API
Documentation
Version 1.4.1
1 Introduction ............................................................................................. 10
1.1 Definitions .................................................................................................................. 10
1.2 REST ........................................................................................................................... 10
1.3 IDs .............................................................................................................................. 11
1.4 Date format ................................................................................................................ 11
1.5 Number format ........................................................................................................... 11
1.6 User permissions......................................................................................................... 11
1.6.1 Permission names in API and Management Console ........................................................................... 11
1.6.2 Permission dependencies ..................................................................................................................... 12
3 API Functions............................................................................................ 21
3.1 Ping ............................................................................................................................ 21
3.1.1 GET /api/v1/ping .................................................................................................................................. 21
Parameters ................................................................................................................................................... 21
Return values ................................................................................................................................................ 21
Authentication .............................................................................................................................................. 21
Description ................................................................................................................................................... 21
Example ........................................................................................................................................................ 21
3.5.3 GET /api/v1/sessions/<code> (get info about a certain session code) ................................................ 36
Parameters ................................................................................................................................................... 36
Return values ................................................................................................................................................ 36
Authentication .............................................................................................................................................. 36
Description ................................................................................................................................................... 36
Example ........................................................................................................................................................ 37
3.5.4 PUT /api/v1/sessions/<code> (modify info for a certain session code) ............................................... 37
Parameters ................................................................................................................................................... 37
Return values ................................................................................................................................................ 37
Authentication .............................................................................................................................................. 37
Description ................................................................................................................................................... 37
Example ........................................................................................................................................................ 38
3.7 Meetings..................................................................................................................... 43
3.7.1 Meeting types ....................................................................................................................................... 43
3.7.1.1 Scheduled meetings ............................................................................................................................. 43
3.7.1.2 Instant meetings ................................................................................................................................... 43
3.7.2 GET /api/v1/meetings (list all scheduled meetings) ............................................................................. 43
Parameters ................................................................................................................................................... 43
Return values ................................................................................................................................................ 44
Authentication .............................................................................................................................................. 44
Description ................................................................................................................................................... 44
Example ........................................................................................................................................................ 44
3.8 Contacts...................................................................................................................... 50
3.8.1 GET /api/v1/contacts (list all contacts from the computers & contacts list) ....................................... 50
Parameters ................................................................................................................................................... 50
Return values ................................................................................................................................................ 51
Authentication .............................................................................................................................................. 51
Description ................................................................................................................................................... 51
Example ........................................................................................................................................................ 52
4 Errors ....................................................................................................... 62
4.1 HTTP response codes .................................................................................................. 62
4.2 JSON error responses .................................................................................................. 62
5 Licensing................................................................................................... 64
7 Appendix A ............................................................................................... 66
7.1 URLs for connections with devices............................................................................... 66
7.2 URLs for connections with contacts ............................................................................. 67
1 Introduction
1.1 Definitions
Name Description
Supporter A user who provides support to the end customer. This user must have a
TeamViewer account.
End Customer A user who does not need to have a TeamViewer account. The user is in
most cases a customer of the company who is using the API.
Client The application (or user, if the HTTP requests are typed in manually) that
uses the API.
1.2 REST
The TeamViewer API is a REST API which uses the already existing HTTP methods to create (POST), read
(GET), change (PUT) or delete (DELETE) single items or a collection of items. The following table shows the
general use cases for these HTTP methods.
Single item retrieve item data - changes the item deletes this item
The basic URI scheme for all API functions is: https://host/path/to/re-
sources[/id][/verb][?param1=value1]
The TeamViewer API can be found at https://webapi.teamviewer.com/
Parameters in the URI are only allowed for GET and DELETE. Generally there should be no need for any pa-
rameters for DELETE, though. POST and PUT need to have the parameters in the body formatted as JSON or
XML.
1.3 IDs
IDs are prefixed with a type in order to make them more distinguishable. The following types are used:
"u" - user ID
"g" group ID
"m" meeting ID
"s" session code
c contact ID
d device ID
r remote control ID, also referred to as TeamViewer ID in other documentations
Reports use a GUID and are not prefixed.
Example 12345.67
Name in API To set this right through the API, these rights also have to be set
None -
ShareOwnGroups -
ViewAllConnections ViewOwnConnections
ViewOwnConnections -
EditConnections -
DeleteConnections -
EditFullProfile -
AcknowledgeAllAlerts AcknowledgeOwnAlerts
AcknowledgeOwnAlerts -
ViewAllAssets ViewOwnAssets
ViewOwnAssets -
EditAllCustomModuleConfigs EditOwnCustomModuleConfigs
EditOwnCustomModuleConfigs -
2.3 Client/Application-Types
Script App
User Access Access token is created that can Client ID is created when creating the
only be used to access the user application. The Client ID can be used
who created the application. with OAuth to create an access token
for the user granting access.
Company Access Access token is created that can be Client ID is created when creating the
used to access the company of the application. The Client ID can be used
user (=company admin) who cre- with OAuth to create an Access-Token
ated the application. to access the company of the user
(=company admin) granting access.
When you register an application for your own use only, you will get an access token that can be used di-
rectly for any API function that requires it. When you register the application for others to use as well, you
will get a Client ID. This Client ID is used in the OAuth process described below. At the end of this process
the application will also have an access token that must be used by the other API functions. This access to-
ken is tied to the account/company that uses the application, not the company that created the application.
If you are using OAuth in your application and the application was registered for company use, the user who
grants access to your application needs to be an administrator. The user who registered the application
does not have to be in a company however.
Parameters
response_type Must be code.
client_id Client ID, a unique string that identifies the application.
redirect_uri URI of the redirection endpoint. The client is redirected to this URI once ac-
cess has been granted. The value of this parameter must match the registered redirect URI.
state (optional) Can be set if needed, and will be returned to the callback URI if it was set
here.
display Must be popup.
Redirection Endpoint
The client is redirected to the redirection endpoint, which is specified when creating an application in Man-
agement Console, after the interaction with the authorization endpoint is completed. Values added to the
redirect_uri:
code Code that can be used to get an access token.
state (optional) same as the one provided as parameter.
Description
Requests an authorization code from the server. This code is only valid for 10 minutes and should be used
to obtain an access token. This is the only function that should not be called directly from a 3 rd party appli-
cation but it should be opened in a browser where the user can grant access to the 3 rd party application.
Example
Request:
GET login.teamviewer.comoauth2/authorize?response_type=code&client_id=12333-
133Ea4Hdf3e9ec0543fX&redirect_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fclient%2Eexample%2Ecom%2Fcb
Parameters
Parameters must be inside the body of the request and encoded with the "application/x-www-form-urlen-
coded" format. This is the only exception where the body is not JSON or XML. There are two different re-
quests for this URI, one to retrieve an access token using an authorization code and one using a refresh to-
ken.
Authorization-Code Grant:
grant_type Must be authorization_code.
code Authorization code acquired from the /oauth2/authorize page.
redirect_uri Must be the same value as in the previous call to /oauth2/authorize.
Refresh-Token:
grant_type Must be refresh_token.
refresh_token Refresh-token from a previous call.
client_id Client ID, a unique string that identifies the application.
client_secret - The client secret, a unique string known only to the creator of the applica-
tion.
Return values
access_token Access token to use with all further API calls.
token_type Authentication-method used for this access token, currently only bearer is
used.
expires_in Time in seconds until the access token expires and needs to be refreshed.
refresh_token Refresh-Token that needs to be used to get a new access token when the
old access token expires. Requesting a new access token will also create a new refresh token.
The refresh token becomes invalid after use or if the access token is revoked.
Description
Requests a new access token, either by using the code from a previous authorization step or by using an
existing refresh token. Access tokens have a limited lifetime of 1 day. The response always has the Cache-
Control and Pragma fields (see example below). Refresh tokens can only be used once. For this request the
Content-Type header should be set to application/x-www-form-urlencoded (as per OAuth 2 specifi-
cation), however JSON/XML also works.
Example
Request (Authorization code grant):
grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSb&redirect_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fc
lient%2Eexample%2Ecom%2Fcb&client_id=12333-133Ea4Hdf3e9ec0543fX
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
{"access_token":"54213-2YotnFZFEjr1zCsicMWp",
"token_type":"bearer",
"expires_in":3600,
"refresh_token":"12854-zv3JOkF0XG5Qx2TlKWIA"}
Example
All examples in the following sections will have this header omitted but if an access token is required the
Authorization header field needs to be added to the request.
If no access token is given in the header, or the access token is past its expiration date, the return will have
a WWW-Authenticate header field.
{ "error" : "token_expired",
"error_code" : 1,
"error_description" : "The access token expired" }
Parameters
None
Return values
None
Description
Revokes an access token that was created using oauth. The access token has to be included in the header
Authorization field. After revoking it, it and its attached refresh token cannot be used any longer.
Example
Request
Response
HTTP/1.1 200 OK
3 API Functions
3.1 Ping
Parameters
None
Return values
token_valid Is set to true if the provided access token is OK and the message is signed
correctly. In all other cases the value is set to false.
Authentication
Access tokens are optional but will be verified if provided. Scope: None required.
Description
This function can be used to check if the API is available. It can also be used to verify if the token is valid.
Example
Request
GET /api/v1/ping
Response
HTTP/1.1 200 OK
Content-Type: application/json
{"token_valid":false}
Parameters
None.
Return values
name The name of the user.
email The associated email address. Only returned if access token has the Ac-
count.ReadEmail scope.
userid The user ID.
company_name (optional) The name of the company that the user belongs to.
Authentication
User access token. Scope: Account.Read and (optionally) Account.ReadEmail.
Description
Retrieves account information of the account associated with the access token.
Example
Request
GET /api/v1/account
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"userid": "u1234567",
"email": "[email protected]",
"name": "John Doe",
"company_name": "Johns Company"
}
Parameters
name (optional) The name of the user.
email (optional) The associated email address. Note that changing the email address needs
to be confirmed in the Management Console first before changes take effect.
password (optional) - A new password for this account. If password is set, oldpassword must
be set to the correct value of the old password.
oldpassword (optional) - The old password of this account
Return values
None.
Authentication
User access token. Scope:Account.Modify, Account.ModifyEmail or Account.ModifyPassword..
Description
Changes account information of the account associated with the access token.
Example
Request
PUT /api/v1/account
Content-Type: application/json
Response
Parameters
email (optional) Lists the user that has an exact match of the given email address. This may
also contain a comma separated list of email addresses, allowing to query multiple users with a
single call.
name (optional) List all users that have the given string as part of their user name.
permissions (optional) List all users with certain permissions. Multiple permissions can be
separated by comma and only users having all the permissions will be listed in that case. (See
1.6.1 for a list of possible values).
full_list (optional) true: list contains all info fields about the users, false (default): list
contains only minimal info about the users
Return values
For the minimal list:
id user ID, needed to access/modify that user
name name of the user
For the full list (additionally):
permissions (optional) Comma-separated list of permissions that this user has. (See 1.6.1
for a list of possible values).
active true if the account is active, false otherwise.
custom_quicksupport_id (optional) The ID of the default custom QuickSupport module
for this user. Omitted if value is auto.
custom_quickjoin_id (optional) The ID of the default custom QuickJoin module for this
user. Omitted if value is auto.
Authentication
User or company access token. Scope: Users.Read
Description
Lists all users in a company. The list can be filtered with additional parameters. The function can also return
a list containing all information about the users. This data is the same as when using GET /users/uID for
each of these users.
Example
Request
GET /api/v1/users?full_list=true
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ "users" : [
{ "id" : "u1234567",
"name" : "Mighty Administrator",
"permissions" : "ManageAdmins, ManageUsers, ShareOwnGroups, EditFullProfile,
ViewAllConnections, ViewOwnConnections, EditConnections, DeleteConnections,
ManagePolicies, AssignPolicies, AcknowledgeAllAlerts,AcknowledgeOwnAlerts,
ViewAllAssets, ViewOwnAssets, EditAllCustomModuleConfigs,
EditOwnCustomModuleConfigs",
"active": true
},
{ "id" : "u2345678",
"name" : "John Doe",
"permissions" : "EditFullProfile"
}]
}
Parameters
email Email of that user. Will be used for login.
password Password for the user. Will be used for login.
permissions (optional) Comma-separated list of permissions that this user has. See 1.6.2
for valid values and combinations. If omitted the following default permissions will be set:
ShareOwnGroups, ViewOwnConnections, EditConnections, EditFullProfile
name Name of the new user.
language Language code for the user. Will be used for the welcome email.
DEPRECATED license_key (optional) License key of the license that will be assigned to
the new user. If omitted, your default license will be set. To assign a license to a user, it must
have been added to the company first.
custom_quicksupport_id (optional) The ID of the default custom QuickSupport module
for this user. Defaults to auto if omitted.
custom_quickjoin_id (optional) The ID of the default custom QuickJoin module for this
user. Defaults to auto if omitted.
Return values
HTTP status code 200 on success and a JSON containing the same data as GET /users/uID. The new URI for
that user will also be returned as part of the HTTP header.
Authentication
User or company access token. Scope: Users.CreateUsers or Users.CreateAdministrators.
Description
Creates a new user for the company. The data for the new user will be returned as response to the POST.
This should be the same as GET /users/uID, except that it will include the id as well. You will need to have
the scope Users.CreateAdministrators to set the permissions ManageUsers or ManageAdmins.
Example
Request
POST /api/v1/users
Content-Type: application/json
{ "email" : "[email protected]",
"password" : "abc!de#f3g2h3",
"name" : "John Michael Dorian",
"language" : "en",
"permissions" : "EditFullProfile" }
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "u456789",
"name" : "Ted",
"permissions" : "EditFullProfile"
}
Parameters
None
Return values
This is the same as the full list for GET /users .
id User ID. Should be the same as in the URL.
name name of the user.
permissions (optional) String list of permissions that this user has. See 1.6.1 for valid val-
ues.
active true if the account is active, false otherwise.
custom_quicksupport_id (optional) The ID of the default custom QuickSupport module
for this user. Omitted if value is auto.
custom_quickjoin_id (optional) The ID of the default custom QuickJoin module for this
user. Omitted if value is auto.
Authentication
User or company access token. Scope: Users.Read.
Description
Returns the information for a single user. The information is the same as when using GET /us-
ers?full_list=true.
Example
Request
GET /api/v1/users/u123
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : " u123",
"email" : "[email protected]",
"name" : "John Doe",
"permissions" : "EditFullProfile",
"active" : true
}
Parameters
email (optional) New Email of the user. A verification Email will be sent to the new address.
name (optional) Real name of the user.
permissions (optional) Comma-separated list of permissions that this user has. See 1.6.2
for valid values and combinations.
password (optional) Assign a new password for this user.
active (optional) Activates or deactivates an account.
DEPRECATED license_key (optional) License key of the license that will be assigned to
the user. To assign a license to a user, it must have been added to the company first.
custom_quicksupport_id (optional) The ID of the default custom QuickSupport module
for this user. Set to auto if no specific module should be assigned.
custom_quickjoin_id (optional) The ID of the default custom QuickJoin module for this
user. Set to auto if no specific module should be assigned.
Return values
HTTP status code 204 (No Content) on success.
Authentication
User or company access token. Scope: Users.ModifyUsers or Users.ModifyAdministrators.
Description
Changes information for a selected user. Only the parts that need to be changed are needed in the request
body.
Security-Warning: An attacker can gain access to a user account either by changing the email (+password
reset) or by changing the password if he can steal the company access token. This makes the company ac-
cess token equivalent to email and password for ALL company accounts with which an attacker can get the
full Computer & Contacts list (and not just what is available over the API).
Example
Request
PUT /api/v1/users/u123
Content-Type: application/json
Response
Parameters
name (optional) Group name or part of the group name
shared (optional) True: list only shared groups, i. e. groups where the current user is not the
owner. False: list only not shared groups, i. e. groups owned by the current user. If left out
both types will be in the list.
Return values
groups List of groups.
id Group ID
name Name of the group.
shared_with (optional) List of users who this group is shared with. Can be omitted if
empty.
o userid User ID of the user the group is shared with.
Authentication
User or company access token. Scope: Groups.Read.
Description
Returns a list of groups.
Example
Request
GET /api/v1/groups?name=Test
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ "groups" : [
{ "id" : "g53235",
"name" : "Testing",
"shared_with" : [
{ "userid" : "u631645",
"name" : "Ted",
"permissions" : "read"}],
"permissions" : "owned"
},
{ "id" : "g425123356",
"name" : "Test",
"owner" : {
"userid" : "u814464403",
"name" : "Tester" },
"permissions" : "readwrite"
}]
}
Parameters
name Name of the new group.
policy_id (optional) ID of the policy that will be assigned to the group. Must be a policy ID.
Return values
id Group ID of the newly created group.
name Name of the new group. This should be the same parameter as the input parameter.
permissions Will always be owned, because the group is not yet shared at this point.
policy_id (optional) ID of the policy that is assigned to the group. License restrictions ap-
ply, see chapter Licensing.
Authentication
User or company access token. Scope: Groups.Create.
Description
Creates a new group and returns its info.
Example
Request
POST /api/v1/groups
Content-Type: application/json
{ "name" : "Test",
"policy_id": "5d93f008-3b1f-8472-8555-3549d5a68092" }
Response
HTTP/1.1 200 OK
Content-Type: application/json
Location: https://webapi.teamviewer.com/groups/g425123356
{
"id" : "g425123356",
"name" : "Test",
"permissions" : "owned",
"policy_id": "5d93f008-3b1f-8472-8555-3549d5a68092"
}
Parameters
None.
Return values
id Group ID
name Name of the group.
shared_with (optional) List of users who this group is shared with. Only available if the user
is owner of the group. Will be omitted if empty.
userid User ID of the user the group is shared with.
permissions Access-permissions of the user on this group. Either read or readwrite.
owner (optional) Owner of this group. Will be omitted if the owner is the current user.
Authentication
User or company access token. Scope: Groups.Read.
Description
Returns info for one group.
Example
Request
GET /api/v1/groups/g425123356
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "g425123356",
"name" : "Test",
"owner" : {
"userid" : "u814464403",
"name" : "Tester" },
"permissions" : "owned",
"policy_id": "5d93f008-3b1f-8472-8555-3549d5a68092"
}
Parameters
name New name of the group.
policy_id (optional) ID of the new policy that will be assigned to the group. Must be a pol-
icy ID. License restrictions apply, see chapter Licensing.
Return values
HTTP status code 204 if change succeeded.
Authentication
User or company access token. Scope: Groups.Modify.
Description
Changes a group. Right now only the name can be changed.
Example
Request
PUT /api/v1/groups/g425123356
Content-Type: application/json
Response
Parameters
None
Return values
HTTP status code 204 on success.
Authentication
User or company access token. Scope: Groups.Delete
Description
Deletes an existing group. If the group is not owned, but only shared with the user's account it will just be
unshared.
Example
Request
DELETE /api/v1/groups/g425123356
Response
Parameters
users List of users with whom the group will be shared.
userid User ID of one of the users you want to share the group with.
permissions Access-permissions of the user on this group. Either read or readwrite.
Return values
HTTP status code 204.
Authentication
User or company access token. Scope: Groups.Share.
Description
Shares a group with the given users. Will not change the share state with other users, but it is possible to
overwrite the permissions for existing shares.
Example
Request
POST /api/v1/groups/g425123356/share_group
Content-Type: application/json
{ "users" : [
{ "userid" : "u33516235",
"permissions" : "read" },
{ "userid" : "u51235",
"permissions" : "readwrite" }]
}
Response
Parameters
users List of User IDs that this group should not longer be shared with.
Return values
HTTP status code 204.
Authentication
User or company access token. Scope: Groups.Share.
Description
Unshares a group from certain users.
Example
Request
POST /api/v1/groups/g425123356/unshare_group
Content-Type: application/json
Response
Parameters
groupid (optional) Filter by group id.
assigned_userid (optional) Filter by assigned_userid.
state (optional) State of the session. Can be open or closed. By default only open sessions
will be selected. States can be combined with a comma.
full_list (optional) true: Return all information for the sessions. This is false by default.
offset (optional) Can contain a session code from a previous request. The returned list will
contain session codes after the one specified as offset.
Return values
For the minimalistic list (full_list=false):
sessions List of session codes.
code Session code.
state State of the session. Can be "open" or "closed".
online Online state of the session. Can be true or false.
groupid Group ID where this session is stored under.
sessions_remaining Number of session codes left after the ones returned here. Will be
omitted if there are no further session codes.
next_offset Offset that can be used to get the next 1000 session codes.
For the full list (full_list=true):
waiting_message Message displayed to the waiting end customer.
description Description for this session code.
end_customer End Customer info
o name Name of the end customer.
o email Email of the end customer.
assigned_userid User ID of the user this session is assigned to. If session is unassigned,
value is u0.
assigned_at Date when the last user was assigned.
end_customer_link Link for the end customer.
supporter_link Link for the supporter.
custom_api Custom field that can be used to store an arbitrary string but is only available to
API functions. It is limited to 4000 characters.
created_at Date when the session code was created.
valid_until Date until when the session code is/was valid.
closed_at Date when the session was closed.
Authentication
User or company access token. Scope: Sessions.ReadAll or Sessions.ReadOwn.
Description
Lists sessions. If no filters are given it will list all sessions in the active account (user access token) or all ses-
sions from all accounts (company access token). A single request will return a maximum of 1000 session
codes. To get the next 1000 session codes, repeat the same request with the offset parameter set to the
value from next_offset. Session codes will be sorted by the created_at date from new to old.
Example
Request
GET /api/v1/sessions?groupid=g425123356&full_list=true
Response
HTTP/1.1 200 OK
Content-Type: application/json
{"sessions" : [
{"code" : "s31-328-542",
"groupid" : "g425123356",
"description" : "Hello, I have an issue with my printer, can you please assist?",
"end_customer" : { "name" : "Peter Niedhelp", "email" : "[email protected]" },
"assigned_userid" : "u7254190",
"end_customer_link" : "https://get.teamviewer.com/...",
"supporter_link" : "https://get.teamviewer.com/...",
"custom_api" : "{ "ticket_id" : "535824" }"
}, ]
}
Parameters
valid_until (optional) Date when session code becomes invalid. Will default to 24h from
now when no date is given.
groupid (partially required) ID of the group the session will be inserted into. The group can
be in a different account when the API user has access to it. Either this or groupname must be
set. For applications with company level access, this parameter is required.
groupname (partially required) Name of the group the session code will be inserted into. Ei-
ther this or the groupid parameter must be set. If no group exists with that name a new group
will be created. If both groupid and groupname are set, both have to point to the same
group. Otherwise an error is returned.
waiting_message (optional) Message displayed to the waiting end customer.
description (optional) Description for the new session code.
end_customer (optional) End customer info.
name (optional) Name of the end customer. Maximum length is 100 characters.
email (optional) Email of the end customer. Maximum length is 254 characters.
assigned_userid (optional) User ID of the user this session code will be assigned to. If not
set, session code will be assigned to the user who created the session code. If set to u0, session
is unassigned.
custom_api (optional) Custom field that stores any arbitrary string (such as JSON or XML)
but is only available to API functions. It is limited to 4000 characters.
Return values
code Newly created session code.
state State of the session. Can be open or closed.
groupid Group ID where this session is stored in.
waiting_message Message displayed to the waiting end customer.
description Description for this session code.
end_customer End customer info
name Name of the end customer.
email Email of the end customer.
assigned_userid User ID of the user this session code is assigned to. If the session code is
not assigned the value will be u0.
assigned_at Date when the last user last assigned.
end_customer_link Link for the end customer.
supporter_link Link for the supporter.
custom_api Custom field that stores any valid JSON/XML object (max 4000 characters) and
is only visible for API users.
created_at Date when the session code was created.
valid_until Date when session code becomes invalid.
Authentication
User or company access token. Scope: Sessions.Create.
Description
Creates a new session code. A session code will always be stored in a group, so either the groupid or
groupname parameter must be set. Session codes will expire after 24h if no valid_until date is set.
Example
Request (with user/company access token)
POST /api/v1/sessions
Content-Type: application/json
{"groupid" : "g425123356",
"description" : " I have aproblemwith myspace bar.",
"end_customer" : { "name" : "Max" }
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
Location: https://webapi.teamviewer.com/api/v1/sessions/s12-345-678
{"code" : "s12-345-678",
"state" : "open",
"groupid" : "g425123356",
"end_customer" : { "name" : "Max" },
"description" : "I have aproblemwith myspace bar.",
"assigned_userid" : "u7254190",
"end_customer_link" : "https://get.teamviewer.com/s12345678",
"supporter_link" : "https://get.teamviewer.com/s12345678-asfg1234asfg",
"valid_until" : "2013-10-30T12:03:29Z"
}
Parameters
None
Return values
code Session code.
state State of the session. Can be open or closed.
online Online-state of the session. Can be true or false.
groupid Group ID where this session is stored in.
waiting_message Message displayed to the waiting end customer.
description Description for this session code.
end_customer End customer info
name Name of the end customer. Maximum length is 100 characters.
email Email of the end customer. Maximum length is 254 characters.
assigned_userid User ID of the user this session code is assigned to.
end_customer_link Link for the end customer.
supporter_link Link for the supporter.
custom_api Custom fields, this stores any arbitrary string but is only available to API func-
tions. It is limited to 4000 characters.
valid_until Date until when the session code is/was valid.
closed_at Date when the session was closed.
Authentication
User or company access token. Scope: Sessions.ReadAll or Sessions.ReadOwn.
Description
Returns information for one session code. It will return exactly the same data that a POST to /sessions
would return except that some of the fields may have changed values.
Example
Request
GET /api/v1/sessions/s15-542-091
Response
HTTP/1.1 200 OK
Content-Type: application/json
{"code" : "s15-542-091",
"state" : "open",
"groupid" : "g425123356",
"waiting_message" : "",
"description" : "HELP!!!11",
"end_customer" : { "name" : "Max", "email" : "" },
"assigned_userid" : "u7254190",
"end_customer_link" : "https://get.teamviewer.com/...",
"supporter_link" : "https://get.teamviewer.com/...",
}
Parameters
groupid (optional) Group ID where this session will be moved to.
groupname (optional) Group name where this session will be moved to. If both groupname
and groupid are set, the group with the specified ID must have the specified name. Otherwise
an error is returned. This parameter can only be used by applications with user-level access.
waiting_message (optional) Message displayed to the waiting end customer.
description (optional) Description for this session code.
end_customer (optional) End customer info
name (optional) Name of the end customer.
email (optional) Email of the end customer.
assigned_userid (optional) User ID of the user to assign this session to. Set to u0 to unas-
sign session.
custom_api (optional) Custom fields, this stores any arbitrary string but is only available to
API functions. It is limited to 4000 characters.
state (optional) State of the session. Can be "open" or "closed".
Return values
HTTP status 204 if changes succeeded.
Authentication
User or company access token. Scope: Sessions.ModifyAll or Sessions.ModifyOwn.
Description
Modifies an existing session code.
Example
Request
PUT /api/v1/sessions/s13-123-123
Content-Type: application/json
Response
3.6 Reporting
License restrictions apply. Please see chapter Licensing for further information.
Parameters
username (optional) Filter by user name of the person who started the connection.
userid (optional) Filter by user ID of the person who started the connection.
groupid (optional) Filter by group ID where the target device or user was in.
devicename (optional) Filter by target device name. Set to unnamed_device to only return
results for unnamed devices. Only available if you are using a user access token.
deviceid (optional) Filter by device ID.
from_date (optional) First start_date for all listed connections. Parameter must contain a
date and can also contain a time. If no time is specified it defaults to 00:00:00Z. Connections
with start_date equal to from_date are included in the results.
to_date (optional) Last start_date for all listed connections. Parameter must contain a
date and can also contain a time. If no time is specified it defaults to 00:00:00Z. Connections
with start_date equal to to_date are excluded from the results.
offset_id (optional) All returned reports will follow the report-ID given in this field. The
given report-ID is excluded from the results.
has_code (optional) Filters out reports that have no session code if true or that have a ses-
sion code if false. If the parameter is left out both types will be returned.
Additional parameters for connections that were done with a session code:
session_code (optional) If specified the response will contain only connections for this ses-
sion code.
Return values
records List of remote control connections
id Report-ID
userid User ID of the person who started the connection.
username User name of the person who started the connection.
contact_id (optional) Contact ID of the target. The Contact ID is returned only for connec-
tions made to contacts.
Authentication
User or company access token. Scope: Connections.Read.
Description
Returns a list of connection reports. The list is limited to 1000 reports per request. If there are more reports
the reports_remaining field will tell you how many. The next_offset field will contain the offset ID to
get the next 1000 (or less) reports and should be used as offset_id parameter for the next request.
If you want to get connections for a single day or multiple days, use the first day at 0:00 for the from_date
parameter and the day after the last day at 0:00 for the to_date parameter.
Example
Request
GET /api/v1/reports/connections?username=Adam
Response
HTTP/1.1 200 OK
Content-Type: application/json
{"records" : [
{ "id" : "B144268F-5A3A-4130-9054-A8F4598B0125",
"username" : "Adam",
"userid" : "u4387123",
"devicename" : "Server 15",
"deviceid" : "20301234",
"start_date" : "2013-01-16T19:20:30Z",
"end_date" : "20130116T194014Z",
"bill" : "0.00",
"currency" : "EUR",
"billing_state" : "Bill",
"notes" : "fixed webserver"
},
{ "id" : "CAB5E30E-7A51-4F74-A9AE-089EE206D220",
"username" : "Adam",
"userid" : "u4387123",
"devicename" : "Server 12",
"deviceid" : "20301234",
"start_date" : "20130117T144011Z",
"end_date" : "20130117T151324Z",
"bill" : "0.00",
"currency" : "EUR",
"billing_state" : "DoNotBill",
"notes" : "installed Windows updates"
},
{ "id" : "F846B994-4259-4F00-BEC0-258D12A6C0BE",
"username" : "Adam",
"userid" : "u4387123",
"devicename" : "Server 12",
"deviceid" : "20301234",
"start_date" : "20130117T152004Z",
"end_date" : "20130117T152351Z",
"bill" : "0.00",
"currency" : "EUR",
"billing_state" : "DoNotBill",
"notes" : "server rebooted and running again"
}
]}
Parameters
billing_state (optional) Can be Bill, Billed or DoNotBill.
notes (optional) Notes for this connection.
Return values
HTTP status code 204.
Authentication
User or company access token. Scope: Connections.Modify.
Description
Changes a field in the connection report.
Example
Request
PUT /api/v1/reports/connections/F846B994-4259-4F00-BEC0-258D12A6C0BE
Content-Type: application/json
Response
Parameters
None.
Return values
HTTP status code 204.
Authentication
User or company access token. Scope: Connections.Delete.
Description
Deletes a connection report.
Example
Request
DELETE /api/v1/reports/connections/F846B994-4259-4F00-BEC0-258D12A6C0BE
Response
Parameters
originid (optional) Filter by ID of the device that started the connection.
userid (optional) Filter by ID of the user that was signed in on the origin device.
targetid (optional) Filter by ID of the target device.
from_date (optional) First start_date for all listed connections. Parameter must contain a
date and can also contain a time. If no time is specified it defaults to 00:00:00Z. Connections
with start_date equal to from_date are included in the results.
to_date (optional) Last start_date for all listed connections. Parameter must contain a
date and can also contain a time. If no time is specified it defaults to 00:00:00Z. Connections
with start_date equal to to_date are excluded from the results.
offset_id (optional) All returned reports will follow the report-ID given in this field. The
given report-ID is excluded from the results.
Return values
records List of remote control connections
id Report-ID
userid (optional) ID of the user that was signed in on the origin device.
username (optional) User name of the person who started the connection.
originid TeamViewer ID of the origin device.
targetid TeamViewer ID of the target device.
targetname (optional) Device name of the target device.
start_date Start date and time of the connection.
end_date End date and time of the connection.
next_offset (optional) ID of the last returned report in this response. Can be used as off-
set_id in a follow-up request to get the next set of connection reports.
Authentication
User or company access token. Scope: Connections.Read.
Description
License restrictions apply. Please see chapter Licensing for further information. Returns a list of connection
reports. The list is limited to 1000 reports per request. The next_offset field will contain the offset ID to
get the next 1000 (or less) reports and should be used as offset_id parameter for the next request.
If you want to get connections for a single day or multiple days, use the first day at 0:00 for the from_date
parameter and the day after the last day at 0:00 for the to_date parameter.
Example
Request
GET /api/v1/reports/devices
Response
HTTP/1.1 200 OK
Content-Type: application/json
{"records" : [
{ "Id": "a6baa54f-e9d1-23ec-bd8f-fc8851923da3",
"originid": 123456789,
"targetid": 234567890,
"targetname": "Desktop",
"start_date": "2016-08-22T12:11:29Z",
"end_date": "2016-08-22T12:11:34Z"
},
{
"Id": "cc1e203f-7a4a-85f8-9fd5-6f23b5d51343",
"originid": 987654321,
"userid": "u13245678",
"targetid": 098765432,
"targetname": "Laptop",
"start_date": "2016-08-22T11:23:04Z",
"end_date": "2016-08-22T11:23:13Z",
"username": "Adam"
},
{
"Id": "ced87ee5-22a7-42cd-8963-90aa45cc55a2",
"originid": 123456789,
"targetid": 321654987,
"targetname": "Server",
"start_date": "2016-08-22T11:20:18Z",
"end_date": "2016-08-22T11:20:34Z"
}
]}
3.7 Meetings
Parameters
from_date (optional) First start date for all listed meetings. Date is included in the filter.
Only the date counts. If a time is provided in the parameter it will be ignored.
to_date (optional) Last start date for all listed meetings. Date is included in the filter. Only
the date counts. If a time is provided in the parameter it will be ignored.
Return values
id The unique meeting ID.
subject The subject of the meeting.
start The start date and time of the meeting.
end The end date and time for the meeting.
password (optional) The meeting password. Omitted if no password is set.
conference_call_information Information about the conference call-
o type Type of the conference call information. Can be either None, TeamViewer or
Custom.
o custom_data (optional) The custom text that is displayed when type is set to Cus-
tom. Omitted if empty.
participant_web_link A web link to join the meeting.
Authentication
User access token. Scope: Meetings.Read.
Description
Lists all scheduled meetings for the account associated with the authentication token. The list can be fil-
tered with additional parameters. This data is the same as when using GET /meetings/<mID> for each of
these users.
Example
Request
GET /api/v1/meetings
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"meetings": [
{
"id": "m12-345-678",
"subject": "TeamViewer API Webinar",
"start": "2013-11-25T14:00:00Z",
"end": "2013-11-25T15:00:00Z",
"password": "1234",
"conference_call_information": {
"type": "Custom",
"custom_data": "Dial 555-4816-2342 to join the conference."
},
"participant_web_link": "https://go.teamviewer.com/m12345678"
},
{
"id": "m98-765-432",
"subject": "API Next Steps",
"start": " 2013-11-25T14:00:00Z",
"end": "2013-11-25T15:00:00Z ",
"conference_call_information": {
"type": "TeamViewer"
},
"participant_web_link": "https://go.teamviewer.com/m98765432"
}
]
}
Parameters
None.
Return values
id The unique meeting ID.
subject The subject of the meeting.
start The start date and time of the meeting.
end The end date and time for the meeting.
password (optional) The meeting password. Omitted if no password is set.
conference_call_information Information about the conference call:
o type Type of the conference call information. Can be either None, TeamViewer or
Custom.
o custom_data (optional) The custom text that is displayed when type is set to Cus-
tom. Omitted if empty.
participant_web_link A web link to join the meeting.
Authentication
User access token. Scope: Meetings.Read.
Description
Retrieve the details of one single meeting.
Example
Request
GET /api/v1/meetings/m12-345-678
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "m12-345-678",
"subject": "TeamViewer API Webinar",
"start": "2013-11-25T14:00:00Z",
"end": "2013-11-25T15:00:00Z",
"password": "1234",
"conference_call_information": {
"type": "Custom",
"custom_data": "Dial 555-4816-2342 to join the conference."
},
"participant_web_link": "https://go.teamviewer.com/m12345678"
}
Parameters
timezone The time zone for which the invitation is created. Specified as offset to UTC as de-
fined by ISO 8061. Examples:
o +0100 for the time zone 1 hour east of UTC, e.g. Central European Time (CET)
o +0200 for the time zone 2 hours east of UTC, e.g. Central European Summer Time
(CEST)
o -0500 for the time zone 5 hours west of UTC, e. g. US/Canadian Eastern Standard
Time (EST).
Return values
invitation_text An invitation text that can be used for emails, chat programs, etc. It con-
tains the meeting ID, a link to directly connect and start and end time given in the timezone
that is stated as parameter. Line breaks are denoted as \n.
Authentication
User access token. Scope: Meetings.Read.
Description
Retrieve an invitation text with start and end time adapted to the given time zone.
Example
Request
GET /api/v1/meetings/m12-345-678/invitation?timezone=+0100&language=en
Response
HTTP/1.1 200 OK
Content-Type: application/json
Parameters
instant (optional) Set true for an instant meeting, false for a scheduled meeting. See
3.7.1 for details about meeting types. Defaults to false.
subject (optional) Subject of the meeting. Required for scheduled meetings, must be left
empty for instant meetings.
start (optional) Start date and time. Required for scheduled meetings, must be left empty
for instant meetings.
end (optional) End date and time. Required for scheduled meetings, must be left empty for
instant meetings.
password (optional) A password that participants must enter to join the meeting.
conference_call_information (optional) Information about how to join a conference
for the meeting. Defaults to {"type" : "TeamViewer"} if omitted.
o type Type of the conference call information. Can be either None, TeamViewer or
Custom.
o custom_data (optional) The custom text that is displayed when type is set to Cus-
tom.
Return values
id The unique meeting ID.
subject (optional) Subject of the meeting. Omitted for instant meetings.
start (optional) The start date and time of the meeting. Omitted for instant meetings.
end (optional) The end date and time for the meeting. Omitted for instant meetings.
password (optional) The meeting password. Omitted if no password is set.
conference_call_information Information about the conference call-
o type Type of the conference call information. Can be either None, TeamViewer or
Custom.
o custom_data (optional) The custom text that is displayed when type is set to Cus-
tom. Omitted if empty.
participant_web_link A web link to join the meeting.
Authentication
User access token. Scope: Meetings.Create.
Description
Creates a new meeting. The response contains the values for the new meeting.
POST /api/v1/meetings
Content-Type: application/json
{
"subject": "TeamViewer API Webinar",
"start": "2013-11-25T14:00:00Z",
"end": "2013-11-25T15:00:00Z",
"password": "1234",
"conference_call_information": {
"type": "Custom",
"custom_data": "Dial 555-4816-2342 to join the conference."
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "m12-345-678",
"subject": "TeamViewer API Webinar",
"start": "2013-11-25T14:00:00Z",
"end": "2013-11-25T15:00:00Z",
"password": "123",
"conference_call_information": {
"type": "Custom",
"custom_data": "Dial 555-4816-2342 to join the conference."
},
"participant_web_link": "https://go.teamviewer.com/m12345678"
}
POST /api/v1/meetings
Content-Type: application/json
{
"instant" : "true"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "m13-345-678",
"participant_web_link": "https://go.teamviewer.com/m13345678"
}
Parameters
subject (optional) Subject of the meeting.
start (optional) Start date and time.
end (optional) End date and time.
password (optional) A password that participants must enter to join the meeting.
conference_call_information (optional) Information about how to join a conference
for the meeting.
o type (optional) Type of the conference call information. Can be either None,
TeamViewer or Custom.
o custom_data (optional) The custom text that is displayed when type is set to Cus-
tom.
Return values
HTTP status code 204 (No Content) on success.
Authentication
User access token. Scope: Meetings.Modify.
Description
Changes one or more values of a meeting.
Example
Request
PUT /api/v1/meetings/m12-345-678
Content-Type: application/json
Response
Parameters
None.
Return values
HTTP status code 204 on success.
Authentication
User access token. Scope: Meetings.Delete.
Description
Deletes a meeting.
Example
Request
DELETE /api/v1/meetings/m12-345-678
Response
3.8 Contacts
3.8.1 GET /api/v1/contacts (list all contacts from the computers & contacts list)
Parameters
name (optional) Return only contacts that contain the value of this parameter in their name.
email (optional) Return only the contact or invitation that exactly matches the given email
address. This may also contain a comma separated list of email addresses, allowing to query
multiple contacts with a single call.
online_state (optional) Return only contacts with the given online_state.
groupid (optional) Return only contacts that are in the specified group.
include_invitations (optional) Additionally returns a list of all pending invitations if
true.
Return values
contact_id The ID that is unique for this entry of the computers & contacts list. Values are
always prefixed with a c.
name The name of the contact.
email (optional) The email address of the contact. This is only returned if the parameter
email was provided when calling the function.
groupid The ID of the group that this contact is a member of.
description The description that the current user has entered for this contact.
online_state The current online state of the contact. Possible values are: online, busy,
away, offline.
profilepicture_url (optional) The profile picture of the contact. Contains the URL at
which the profile picture can be found. The URL contains the string [size] as placeholder for
the size of the picture, which needs to be replaced by an integer to retrieve the picture of that
size. Valid sizes are 16, 32, 64, 128 and 256. Omitted if a contact has no profile picture set.
supported_features The features supported by the contact. Possible values are: chat,
remote_control, meeting, videocall.
invitations (optional) List of all pending invitations.
o groupId The ID of the group this contact will be a member of.
o email The email address of the invitee.
Authentication
User access token. Scope: ContactList.Read.
Description
Returns a list of contacts in the users computers & contacts list that match the criteria given in the parame-
ters.
The contact_id can also be used to request TeamViewer sessions (such as chat with contact, send file to
contact, prompt remote access, etc.) using the TeamViewer website https://start.teamviewer.com. For
more information, please see Appendix A, page 66.
Example
Request
GET /api/v1/contacts
Response
HTTP/1.1 200 OK
Content-Type: application/json
{"contacts": [
{ "contact_id": "c123456789",
"name": "Jack",
"groupid": "g12345678",
"online_state": "Offline",
"profilepicture_url": "https://profilepicturedl.teamviewer.com/a-
35489836/81cae6b1-4acf-4138-bd14-f3c27716b400/[size]"
"supported_features": "remote_control, videocall, chat, meeting"
},
{
"contact_id": "c123456780",
"name": "John",
"groupid": "g12345678",
"online_state": "Offline"
}]
}
Parameters
email The unique email of the account that is to be added as a contact.
groupid (partially required) ID of the group the contact will be added to. Either this or the
parameter groupname must be set.
groupname (partially required) Name of the group the contact will be added to. Either this or
the groupid parameter must be set. If no group exists with that name a new group will be cre-
ated. If both groupid and groupname are set, both have to point to the same group. Other-
wise an error is returned.
description (optional) The description of the contact.
invite (optional) true: Creates an invitation if the contact does not exist.
If invite is true and a request to add a non-existing contact was made an error is returned
stating that the contact could not be added but an invitation was sent. The invitation will be
sent via email.
Return values
On success, the contact is returned with the same values as in GET /contacts.
Authentication
User access token. Scope: ContactList.Write.
Description
Adds a contact to the computers & contacts list. An error is returned if either
the contact is already present in the computers & contact list in a group owned by the current
user.
an account with the specified email does not exist.
the user does not have sufficient rights to add a contact in the specified group.
Example
Request
POST /api/v1/contacts
Content-Type: application/json
{
email: [email protected],
groupid: g12345678
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"contact_id": "c123456780",
"name": "John Locke",
"groupid": "g12345678",
"online_state": "Offline"
}
Parameters
None.
Return values
HTTP status code 204 on success.
Authentication
User access token. Scope: ContactList.Delete.
Description
Deletes a contact from the computers & contacts list. An error is returned if either
a contact with the given cID does not exist in the current users computers & contact list.
the user does not have sufficient rights to remove the specified contact from a shared group.
Example
Request
DELETE /api/v1/contacts/c123456789
Response
3.9 Devices
3.9.1 GET /api/v1/devices (list all devices from the computers & contacts list)
Parameters
online_state (optional) Return only devices with the given online_state.
groupid (optional) Return only devices that are in the specified group.
remotecontrol_id Return only devices with the specified remotecontrol_id
Return values
device_id The ID that is unique for this entry of the computers & contacts list. Values are
always prefixed with a d.
remotecontrol_id The ID that is unique to this device and can be used to start a remote
control session.
groupid The ID of the group that this device is a member of.
alias The alias that the current user has given to this device.
description The description that the current user has entered for this device.
online_state The current online state of the device. Possible values are: online, of-
fline.
supported_features The features supported by the device. Possible values are: chat,
remote_control.
assigned_to Indicates whether the device is assigned to the current user. Possible values
are: true, false.
policy_id (optional) ID of the policy that is assigned to the device. Possible values are: a
policy_id, inherit. License restrictions apply, see chapter Licensing.
Authentication
User access token. Scope: ContactList.Read.
Description
Returns a list of devices in the users computers & contacts list.
The remotecontrol_id can also be used to request TeamViewer sessions (such as chat with device, send
file to device, prompt remote access, etc.) using the TeamViewer website https://start.teamviewer.com.
For more information, please see Appendix A, page 66.
Example
Request
GET /api/v1/devices
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ "devices": [
{
"remotecontrol_id": "r123456789",
"device_id": "d123456789",
"alias": "PC",
"groupid": "g12345678",
"online_state": "Online"
"supported_features": "remote_control, chat",
"policy_id": "5d93f008-3b1f-8472-8555-3549d5a68092"
},
{
"remotecontrol_id": "r123456780",
"device_id": "d345667567",
"alias": "Laptop",
"groupid": "g12345678",
"online_state": "Offline"
"supported_features": "remote_control"
},
{
"remotecontrol_id": "r345678890",
"device_id": "d444443226",
"alias": "Office",
"groupid": "g12345678",
"online_state": "Offline"
}
]
}
Parameters
alias (optional) A new alias for the device.
description (optional) A new description for the device.
password (optional) A password that will be used when connecting to the device.
policy_id (optional) ID of the policy that will be assigned to the device. Possible values are:
a policy_id, inherit, none. License restrictions apply, see chapter Licensing.
groupid (optional) ID of the group the device will be moved to. May not be used together
with parameter policy_id.
Return values
HTTP status code 204 (No Content) on success.
Authentication
User access token. Scope: ContactList.Modify.
Description
Changes one or more values of a device.
Example
Request
PUT /api/v1/devices/d12345
Content-Type: application/json
Response
Parameters
remotecontrol_id The TeamViewer ID of the device to be added.
groupid The group in which the device is to be added.
description (optional) The description of the device.
alias (optional) The alias of the device.
password (optional) A password that will be used when connecting to the device.
Return values
On success, the device is returned with the same values as in GET /devices.
Authentication
User access token. Scope: ContactList.Write.
Description
Adds a device to the computers & contacts list. An error is returned if either
the device is already present in the computers & contact list in a group owned by the current
user.
the user does not have sufficient rights to add a device in the specified group.
Example
Request
POST /api/v1/devices
Content-Type: application/json
{
remotecontrol_id: r123456789,
groupid: g12345678,
password: 4815162342
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ "remotecontrol_id": "r123456789",
"device_id": "d999999999",
"alias": "Laptop",
"groupid": "g12345678",
"online_state": "online"
}
Parameters
None.
Return values
HTTP status code 204 on success.
Authentication
User access token. Scope: ContactList.Delete.
Description
Deletes a device from the computers & contacts list. An error is returned if either
a device with the given dID does not exist in the current users computers & contact list.
the user does not have sufficient rights to remove the specified contact from a shared group.
Example
Request
DELETE /api/v1/devices/d999999999
Response
Parameters
None.
Return values
policies List of policies.
o settings List of all settings of a policy.
key The label of a setting.
value Value of a setting.
enforce Enforced settings cannot be set on the device. Possible values
are: true, false.
o name Name of a policy.
o policy_id Unique ID of a policy.
Authentication
User access token.
Description
Lists all policies created by the account. Use in combination with PUT /api/v1/teamviewerpolicies/<pol-
icy_id> to modify a policy.
Example
Request
GET /api/v1/teamviewerpolicies
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ "policies": [
{
"settings": [
{
"Key": "CheckForNewVersion",
"Value": 0,
"Enforce": false
}
],
"name": "One",
"policy_id": "5431b8a2-8b2a-479c-a66a-80c5ce067dc3"
},
{
"settings": [
{
"Key": "EnableBlackScreenOnDisabledInput",
"Value": false,
"Enforce": false
}
],
"name": "Two",
"policy_id": "5d93f008-2b0f-4971-8555-3549d5a68092"
},
{
"settings": [
{
"Key": "DisableTeamViewerShutdown",
"Value": true,
"Enforce": false
}
],
"name": "Three",
"policy_id": "261a9fb5-8f05-4db8-a2a5-2dd7713d12f7"
}
]
}
Parameters
None.
Return values
policies List of policies.
o settings List of all settings of the policy.
key The label of a setting.
value Value of a setting.
enforce Enforced settings cannot be set on the device. Possible values
are: true, false.
o name Name of the policy.
o policy_id Unique ID of the policy.
Authentication
User access token.
Description
Returns a specific policy. Use in combination with PUT /api/v1/teamviewerpolicies/<policy_id> to modify
the policy.
Example
Request
GET /api/v1/teamviewerpolicies/5431b8a2-8b2a-479c-a66a-80c5ce067dc3
Response
HTTP/1.1 200 OK
Content-Type: application/json
{ "policies": [
{
"settings": [
{
"Key": "CheckForNewVersion",
"Value": 0,
"Enforce": false
}
],
"name": "One",
"policy_id": "5431b8a2-8b2a-479c-a66a-80c5ce067dc3"
}
]
}
Parameters
settings List of all settings of the policy.
o key The label of a setting.
o value Value of a setting.
o enforce Enforced settings cannot be set on the device. Possible values are: true,
false.
name Name of the policy.
Return values
HTTP status code 204 (No Content) on success.
Authentication
User access token.
Description
Modifies the settings of the specified policy. Use in combination with GET /api/v1/teamviewerpolicies/<pol-
icy_id> to retrieve the settings of the policy.
Example
Request
PUT /api/v1/teamviewerpolicies/5431b8a2-8b2a-479c-a66a-80c5ce067dc3
Content-Type: application/json
{
"settings": [
{
"Key": "CheckForNewVersion",
"Value": 1,
"Enforce": false
}
]
}
Response
Parameters
None.
Return values
HTTP status code 204 (No Content) on success.
Authentication
User access token.
Description
Deletes the specified policy.
Example
Request
DELETE /api/v1/teamviewerpolicies/5431b8a2-8b2a-479c-a66a-80c5ce067dc3
Response
4 Errors
rate_limit_reached Too many calls to a single function with the same access token.
token_expired Access token is expired. A new access token needs to be requested.
invalid_client Client ID was invalid.
email_in_use Returned during account creation or when changing the email if the email is
already used by another account.
invalid_request and invalid_token are taken from http://self-issued.info/docs/draft-ietf-oauth-v2-
bearer.html#resource-error-codes (with the exception that they are not included in the WWW-Authenti-
cate header field but the returned JSON).
5 Licensing
Certain API functions require a TeamViewer license to use them. These functions are:
Connection reporting and user management: TeamViewer 9 or above, Premium or Corporate
Functions with company level access: TeamViewer 9 or above, Premium or Corporate
Contacts and Devices: TeamViewer 10
Device reporting: TeamViewer 12 or above, Corporate
Policy Management: TeamViewer 12 or above, Premium or Corporate
All other functions are available with any license and free for private use.
Without a valid license, it is not possible to create private Script Tokens or grant access to public Apps that
require any of the aforementioned functions.
6 Contact
7 Appendix A
Via the URL https://start.teamviewer.com and additional parameters, it is possible to request connections
or call up TeamViewer features. Because the features are called up via a browser, you can use this method
from any application or operating system.
In conjunction with the TeamViewer web API, this will offer easy integration of TeamViewer features into
your own application environment.
To use device related parameters, the remotecontrol_id of the device is needed. How to get
the remotecontrol_id using the API is described under section 3.9 Devices, page 54.
To use contact related parameters, the contact_id of the contact is needed. How to get the
contact_id using the API is described under section 3.8 Contacts, page 50.
Please find a list of the available parameters below.
device <remotecontrol_id> -
contact <contact_id> -
URL Request
URL Request
start.teamviewer.com/device/<remotecontrol_id>/mode/chat Chat
URL Request
start.teamviewer.com/contact/<contact_id>/mode/chat Chat
Connections and chat to contacts require both sides to be logged into their TeamViewer account.