Getting started with REST API
This section covers specifics of the Direct Take REST API
To enable REST API based control of Direct Take, you should run it with the administrator privileges, and go to Preferences:

Once the prefix is set, Direct Take is available for remote control.
The type of request content is JSON:
application/json
When you create or update resources, you don't need to put all the fields in JSON. All the unspecified fields keep the existing values for
PUT
, or set with the default values for POST
.All valid responses have the code
200 (OK)
. If something is wrong, the API returns the code 400 (Bad Request)
.You should use the REST API Token with all the requests as the "Authorization" header. The token is provided with a license for Direct Take. You can copy the token from the Preferences menu.
Example: "Bearer perm:2cc39f38-d120-46fa-9d90-359375b4eb26"
Direct Take's REST API is available by the following URL:
http://{server_address}:{port_number}/api/
/api/
is the context path for the REST API of the service.get
http://localhost:9000/api
/sources/{index}
Typical method
Last modified 1yr ago