Box Developer Documentation
Latest version

List terms of services

get
https://api.box.com/2.0
/terms_of_services

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Returns the current terms of service text and settings for the enterprise.

Request

bearer [ACCESS_TOKEN]
application/json

Query Parameters

stringin queryoptional
managed

Limits the results to the terms of service of the given type.

Value is one of external,managed

Response

application/jsonTerms of services

Returns a collection of terms of service text and settings for the enterprise.

application/jsonClient error

An unexpected client error.

get
List terms of services
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versioning strategy.


cURL
curl -i -X GET "https://api.box.com/2.0/terms_of_services" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.termsOfServices.getTermsOfService();
Python v10
client.terms_of_services.get_terms_of_service()
.NET v10
await client.TermsOfServices.GetTermsOfServiceAsync();
Swift v10
try await client.termsOfServices.getTermsOfService()
Java v10
client.getTermsOfServices().getTermsOfService()
Java v4
List<BoxTermsOfService.Info> termsOfServices = BoxTermsOfService.getAllTermsOfServices(api);
for(BoxTermsOfService.Info termsOfServiceInfo : termsOfServices){
    // Do something with the terms of service.
}
Python v3
terms_of_services = client.get_terms_of_services()
for terms_of_service in terms_of_services:
    print(f'Terms of Service ID is {terms_of_service.id} and the message is {terms_of_service.text}')
.NET v5
BoxTermsOfServiceCollection<BoxTermsOfService> termsOfService = await client.TermsOfServiceManager
    .GetTermsOfServicesAsync();
Node v3
client.termsOfService.getAll()
	.then(termsOfService => {
		/* termsOfService -> {
			entries: [
				total_count: 1,
				{ type: 'terms_of_service',
				id: '12345',
				status: 'disabled',
				enterprise: { type: 'enterprise', id: '55555' },
				tos_type: 'managed',
				text: 'By using this service, you agree to ...',
				created_at: '2018-04-19T13:55:09-07:00',
				modified_at: '2018-04-19T13:55:09-07:00' }
			]
		*/
	});

Response Example

{
  "entries": [
    {
      "id": "11446498",
      "type": "terms_of_service",
      "created_at": "2012-12-12T10:53:43-08:00",
      "enterprise": {
        "id": "11446498",
        "name": "Acme Inc.",
        "type": "enterprise"
      },
      "modified_at": "2012-12-12T10:53:43-08:00",
      "status": "enabled",
      "text": "By using this service, you agree to ...",
      "tos_type": "managed"
    }
  ],
  "total_count": 2
}