Content Delivery Client API
Version:
1.7.42License: Proprietary license
Overview
You are currently viewing the Cloud Delivery Client API documentation, intended to be used at runtime by your game client.
The Content Delivery Management API is intended to be used by developers at build time for managing content.
Cloud Content Delivery (CCD) is a managed cloud service that hosts and delivers content to your application's users worldwide without having to reinstall a new version of the application.
The service is fully integrated into the Unity development platform, saving you months of building and maintaining your own similar service.
CCD is most valuable for content-rich, live games or applications that require content updates on a regular basis.
Client API Domain
The Client API base domain uses a different domain from the Management API and is in the format:
https://[projectid].client-api.unity3dusercontent.com
Environments
Environments can be created in the Unity Developer Dashboard. A project can exist in several different environments with completely different data sets. Org and User routes are not impacted by environments, but any project or bucket level route is. To find a list of environments for your project and their corresponding IDs visit the Dashboard. If you signed up for UGS Beta, click on Projects. Find your Project and then click on Environments under Project Settings. When environments were introduced all existing data was put into the 'production' environment. If you did not sign up, you can see the environment Id in the LiveOps page. In the Cloud Content Delivery section, click on buckets and you will see the Environment ID in the GUIDS tabs. If you make an API call without an environment ID or environment name you will get data from that default - 'production' - environment.
Routes in the management API take an environment ID. Routes in the client API take an environment name which is then resolved by the API to the proper ID.
All of the old routes without an environment specified have been marked deprecated. They still work and will continue to be supported. We just wanted to make it clear in the documentation which routes you should use going forward.
Authentication
Authentication details depend on whether a bucket is configured as public or private.
Public Buckets
For buckets configured as public, everything in the Client API requires NO AUTHENTICATION. The data served from this API is effectively public.
Private Buckets
For buckets configured as private, everything in the Client API requires a Bucket Access Token that is specific that particular bucket.
To manage access tokens, use the Content Delivery Management API or visit the Developer Dashboard. Access tokens can be configured in the dashboard by navigating to the specific bucket and then to the Settings page.
To authenticate requests, include a Basic Authentication header as a base64-encoded string , using your access token as the password (and empty username).
For example, an access token value of would include an Authorization header like:
username:passwordd6d2c026bac44b1ea7ac0332694a830eAuthorization: Basic OmQ2ZDJjMDI2YmFjNDRiMWVhN2FjMDMzMjY5NGE4MzBl
Download OpenAPI specification:
An entry is a single piece of content within a bucket. Entries are versioned and support adding associated labels / metadata.
Content endpoints are used to retrieve the actual file data for a specific entry.
Releases are a snapshot of the entries contained within a bucket at a single point in time.
Get changed entries between releases
deprecatedOperation ID:
GetReleaseDiffEntriesGet content for entry
deprecatedOperation ID:
GetContentPublicGet content for version of entry
deprecatedOperation ID:
GetContentVersionPublicGet content status for version of entry
deprecatedOperation ID:
GetContentStatusVersionPublicGet content by path
deprecatedOperation ID:
GetContentByPathPublicGets the content for an entry by path.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationGet content for entry from a badged release
deprecatedOperation ID:
GetBadgedReleaseContentPublicGet content status of an entry from a badged release
deprecatedOperation ID:
GetBadgedReleaseContentStatusPublicGet content in badged release by path
deprecatedOperation ID:
GetBadgedReleaseContentByPathPublicGet content status of an entry by path from a badged release
deprecatedOperation ID:
GetBadgedReleaseContentStatusByPathPublicGets the status of uploaded content in a badged release by path.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get content status of an entry by path from a badged release":
Request example
curl -X HEAD \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/buckets/BUCKETID/release_by_badge/BADGENAME/entry_by_path/content/?path=PATH"
Response example
Get content for entry
deprecatedOperation ID:
GetReleaseContentPublicGet content in release by path
deprecatedOperation ID:
GetReleaseContentByPathPublicGet counts of changes between releases
Operation ID:
GetReleaseDiffEnvGet changed entries between releases
Operation ID:
GetReleaseDiffEntriesEnvGet content for entry
Operation ID:
GetContentPublicEnvGet content for version of entry
Operation ID:
GetContentVersionPublicEnvGet content status for version of entry
Operation ID:
GetContentStatusVersionPublicEnvGets the status of uploaded content for a specific version of an entry.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get content status for version of entry":
Request example
curl -X HEAD \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/environments/ENVIRONMENTNAME/buckets/BUCKETID/entries/ENTRYID/versions/VERSIONID/content/"
Response example
Get content by path
Operation ID:
GetContentByPathPublicEnvGet content for entry from a badged release
Operation ID:
GetBadgedReleaseContentPublicEnvGets the content for an entry in a badged release.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get content for entry from a badged release":
Request example
curl -X GET \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/environments/ENVIRONMENTNAME/buckets/BUCKETID/release_by_badge/BADGENAME/entries/ENTRYID/content/"
Response example
Get content status of an entry from a badged release
Operation ID:
GetBadgedReleaseContentStatusPublicEnvGets the status of uploaded content for a given entry from a badged release.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get content status of an entry from a badged release":
Request example
curl -X HEAD \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/environments/ENVIRONMENTNAME/buckets/BUCKETID/release_by_badge/BADGENAME/entries/ENTRYID/content/"
Response example
Get entry in a badged release by path
Operation ID:
GetEntryForBadgeByPathPublicEnvGets a single entry for a given badged release by path.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get entry in a badged release by path":
Request example
curl -X GET \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/environments/ENVIRONMENTNAME/buckets/BUCKETID/release_by_badge/BADGENAME/entry_by_path/?path=PATH"
Response example
Get content in badged release by path
Operation ID:
GetBadgedReleaseContentByPathPublicEnvGets the content for an entry in a badged release by path.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get content in badged release by path":
Request example
curl -X GET \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/environments/ENVIRONMENTNAME/buckets/BUCKETID/release_by_badge/BADGENAME/entry_by_path/content/?path=PATH"
Response example
Get content status of an entry by path from a badged release
Operation ID:
GetBadgedReleaseContentStatusByPathPublicEnvGets the status of uploaded content in a badged release by path.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get content status of an entry by path from a badged release":
Request example
curl -X HEAD \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/environments/ENVIRONMENTNAME/buckets/BUCKETID/release_by_badge/BADGENAME/entry_by_path/content/?path=PATH"
Response example
Get content for entry
Operation ID:
GetReleaseContentPublicEnvGet content in release by path
Operation ID:
GetReleaseContentByPathPublicEnvGet content status in release by path
Operation ID:
GetReleaseContentStatusByPathPublicEnvGets the status of uploaded content in a release by path.
Authorizations
BucketAccessToken
API key location: Header
API key name:
AuthorizationCode samples for "Get content status in release by path":
Request example
curl -X HEAD \ -H "Authorization: <YOUR_API_KEY>" \ "https://[projectid].client-api.unity3dusercontent.com/client_api/v1/environments/ENVIRONMENTNAME/buckets/BUCKETID/releases/RELEASEID/entry_by_path/content/?path=PATH"