- Using basic HTTP authentication. Provide a valid TeamCity username and password with the request. You can force basic auth by including
"httpAuth" before the "
/app/rest" part: e.g.
- Using access to the server as a guest user (if enabled) include "
guestAuth" before the "
/app/rest" part: e.g.:
- if you are checking REST
GETrequests from within a browser and you are logged in to TeamCity in the browser, you can just use "
/app/rest" URL: e.g.
There is also a workaround for not sending credentials with every requestAuthentication can be slow when not built-in authentication module is used, consider applying a workaround for reusing authentication between sequential requests.
If you perform a request from within a TeamCity build, for a limited set of build-related operations (like downloading artifacts) you can use values of
teamcity.auth.userId/teamcity.auth.password system properties as credentials (within TeamCity settings you can reference them as