Documentation

Enterprise API

Generate a WTC file via API

You can create and download a wtc file of a Target Collection (Generate WTC) with up to 1000 targets by calling

/cloudrecognition/targetCollection/:tcId/generation/wtc

with method POST. You have to specify the SDK version the wtc file should be built for in the request body. Valid values for the version are 4.1, 5.0, 5.1, 5.2, 5.3, 6.0, 6.1, 6.2, 7.0, 7.1, 7.2, 8.0. Optionally, an email address can be added. The email is used for a notification once the generation of the wtc file has finished. Example for the request body:

{
    "sdkVersion": "6.0",
    "iwantmywtcfile@wikitude-user.com"
}

Similar to the cloud archive generation this call is asynchronous, so the response header (Location) contains a path useful for requesting the status of the wtc creation. Once the status is COMPLETED the link to the actual wtc file can be requested from the TargetCollection. The received TargetCollection object (in the body of the response) contains an additional property called wtc, which is an array of wtc objects. Those objects consists of the following properties:

  • the url to the wtc file,
  • the number of targets (nrOfTargets),
  • the version,
  • the creation date (creDat)