Box Developer Documentation

Get terms of service

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

Fetches a specific terms of service.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
324234

The ID of the terms of service.

Response

application/jsonTerms of service

Returns a terms of service object.

application/jsonClient error

An unexpected client error.

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

Request Example

cURL
curl -i -X GET "https://api.box.com/2.0/terms_of_services/324234" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Java
BoxTermsOfService termsOfService = new BoxTermsOfService(api, "tos-id");
BoxTermsOfService.Info tosInfo = termsOfService.getInfo();
Python
terms_of_service = client.terms_of_service(tos_id='12345').get()
print(f'Terms of Service ID is {terms_of_service.id} and the message is {terms_of_service.text}')
.NET
BoxTermsOfService tos = await client.TermsOfServiceManager.GetTermsOfServicesByIdAsync("11111");
Node
client.termsOfService.get('12345')
	.then(tos => {
		/* tos -> {
			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' }
		*/
	});
iOS
client.termsOfService.get(
    tosID: "12345"
) { (result: Result<TermsOfService, BoxSDKError>) in
    guard case let .success(termsOfService) = result else {
        print("Error getting terms of service information")
        return
    }
    print("Terms of Service with id: \(termsOfService.id) was retrieved")
}

Response Example

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