You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(@taylorsilva): We're updating the website (Booklit to Zensical) and will add API docs after that migration.
Reacted by Mathias Bogaert, Logan Mzz, Peter Travers, maza0, Thiago Ferreira, Mehdi Souihed, Andy Hume, Ivan Fraixedes, Sergey, Jirka Daněk and 30 more
Reacted by Logan Mzz, Shu Kutsuzawa, Andy Hume, Charles Essien, Darryn Papathanasiou, Maxence Boutet, Daniel Siguero, Aidan and Arut++
any progress on this issue?
inb4 "nobody likes writing docs"
Reacted by minstamaria, wayne-luminal, Simon Johansson, Guillaume Chenuet, Mathias Bogaert, Alexander M., Alex Tasioulis, José Riguera Lopez , mattdjones, Tom Denley and 8 more
Reacted by Romero, Simon Johansson, José Riguera Lopez and mattdjones
Whelp, I know its been a while but we're actually re-visiting this now. Since we originally wrote the issue, we've held off from doing this in favour of implementing Users and RBAC.
We've finished both of those features now so we're starting to revisit what it will take to build up a sustainably maintained and documented API. As a first step, we're asking for feedback from any Concourse users who have written any scripts/apps/code against the existing Concourse API. If you have any feedback, please comment below!
Reacted by Tom Denley, Julien Syx, Robert Tingirică and Sergey
An Open API document would be highly appreciated. It will allow knowing the request and response payloads on each route without having to dig into the Go source code.
On the other hand (and probably in a second stage) some more source comments (GoDoc) would also be appreciated.
Reacted by Julien Syx, Cansın Aldanmaz, danilo, Sergey, Dan Hopkins, Ringo De Smet and Arut++
It works like a charm. Syntax was a little hard to understand in the dogs when I first read through. Might open a PR for a little more clarity for newbies like me. Would that be received well? Either way, thanks for the awesome library!
@SvenDowideit (or anyone else) how do we add the authorization to requests like fetching the old config or PUT-ing new config for pipelines? I hit these end points and get 401. For example
GET {{local-concourse-url}}/api/v1/teams/main/pipelines/hello-world/config
Results in a 401. What is the authorization I am supposed to add? And how do I add it to the request? I tried the concourse user/password as Basic Auth params to the request and also tried adding headers username and password.
#!/bin/bash
## Variables required #need to update these to take inputs for getting token per team and target.
CONCOURSE_URL="http://concourseci.XXXXXX.XXX"
CONCOURSE_USER="XXXX"
CONCOURSE_PASSWORD="XXXX"
CONCOURSE_TEAM="XXXXXX"
CONCOURSE_TARGET=XXXXXX
function get_token() {
## Create a file named token that will be used to read and write tokens
touch token
## extract the LDAP authentication url and write to token file
LOCAL_AUTH_URL=$CONCOURSE_URL$(curl -b token -c token -L "$CONCOURSE_URL/sky/login" -s | grep "/sky/issuer/auth/local?" | awk -F'"' '{print $4}')
echo "url is $LOCAL_AUTH_URL"
# login using username and password while writing to the token file
curl -s -o /dev/null -b token -c token -L --data-urlencode "login=$CONCOURSE_USER" --data-urlencode "password=$CONCOURSE_PASSWORD" "$LOCAL_AUTH_URL"
ATC_BEARER_TOKEN=`grep 'Bearer' token | cut -d\ -f2 | sed 's/"$//'`
echo $ATC_BEARER_TOKEN
}
for those that come later - its also excellent to know that fly has a --verbose flag that will show you the HTTP request and responses that it makes - ie, the client is self documenting, the only hard thing is discovering that it does it :)
Would still be nice to have. We should probably update the website since I think it's a bit hard for people to grok how to add things to it beyond basic text stuff.
Hi all - @Kump3r and I have prepared a draft of the Concourse API documentation in Markdown format. We hope it’s useful for anyone interested in working with or extending the ATC REST API. You can find the draft in the API Endpoint Quick Reference section in concourse-api-docs repo.
@taylorsilva Since the official documentation is currently being migrated to MCdocs (as mentioned in the last cff working group meeting), we weren’t sure where contributions like this should live. Once the migration is complete, we’re happy to open a PR to integrate the API docs into the new structure.
If you have a preferred location or any guidance on how you’d like this incorporated, just let us know - we’re glad to help.
Activity
[-]Provide ATC (REST) API docs[/-][+]Document and support the ATC REST API[/+]trobert2 commentedon Apr 9, 2018
any progress on this issue?
inb4 "nobody likes writing docs"
scarytom commentedon Oct 10, 2018
I guess this is the closest thing we have to documentation for the API: https://github.com/concourse/concourse/blob/master/atc/routes.go#L106
jama22 commentedon Oct 26, 2018
Whelp, I know its been a while but we're actually re-visiting this now. Since we originally wrote the issue, we've held off from doing this in favour of implementing Users and RBAC.
We've finished both of those features now so we're starting to revisit what it will take to build up a sustainably maintained and documented API. As a first step, we're asking for feedback from any Concourse users who have written any scripts/apps/code against the existing Concourse API. If you have any feedback, please comment below!
ifraixedes commentedon Oct 29, 2018
An Open API document would be highly appreciated. It will allow knowing the request and response payloads on each route without having to dig into the Go source code.
On the other hand (and probably in a second stage) some more source comments (GoDoc) would also be appreciated.
murac commentedon Nov 9, 2018
Even just for the time being, an example of fetching a Bearer token via script would be great. Anyone have any leads there?
StevenArmstrong commentedon Nov 9, 2018
dwelch2344 commentedon Nov 16, 2018
Even starting with a postman collection or something would be awesome. TBO that’s my preferred docs these days
dwelch2344 commentedon Nov 16, 2018
It works like a charm. Syntax was a little hard to understand in the dogs when I first read through. Might open a PR for a little more clarity for newbies like me. Would that be received well? Either way, thanks for the awesome library!
scarytom commentedon Nov 19, 2018
Here is a bearer token request using curl
EDIT: As @gkspranger points out below, from v6.7.2 the URL is
/sky/issuer/tokenvergissberlin commentedon Jan 17, 2019
An API documentation is created very easily with swagger. You can also generate code with it.
6 remaining items
iornstein commentedon Jun 18, 2019
@SvenDowideit (or anyone else) how do we add the authorization to requests like fetching the old config or PUT-ing new config for pipelines? I hit these end points and get 401. For example
GET {{local-concourse-url}}/api/v1/teams/main/pipelines/hello-world/configResults in a 401. What is the authorization I am supposed to add? And how do I add it to the request? I tried the concourse user/password as Basic Auth params to the request and also tried adding headers
usernameandpassword.fewknow commentedon Jul 9, 2019
Fetching bearer token with basic auth(local)
Here is a link for LDAP : #1487
TheDevMinerTV commentedon Mar 14, 2020
Bump
aalfansuri commentedon Oct 8, 2020
any further progress on this?
kalrashubham49 commentedon Nov 3, 2020
It isn't working in my case , can you please verify does it still work in concourse 6.6.0
kalrashubham49 commentedon Nov 3, 2020
Did you get the script for this ?
scarytom commentedon Nov 3, 2020
I have not verified this on any recent concourse versions, sorry.
kalrashubham49 commentedon Nov 4, 2020
Is Verbose flag working ??
micheelengronne commentedon Nov 27, 2020
Nope. It shows the response but not the request.
gkspranger commentedon Jan 28, 2021
@kalrashubham49 @micheelengronne
the URL has changed in later versions -- don't know when exactly
as of 6.7.2 -- it is
/sky/issuer/tokenfound it by searching here :: https://github.com/concourse/concourse/search?q=Zmx5
jlamb1 commentedon Jul 30, 2021
@fewknow 's script worked great! In case anyone else makes the silly mistake I did, the
--user 'fly:Zmx5'shouldn't be modified, but entered as is.fedoranvar commentedon Nov 22, 2022
postman's way
taylorsilva commentedon Jan 6, 2025
Would still be nice to have. We should probably update the website since I think it's a bit hard for people to grok how to add things to it beyond basic text stuff.
IvanChalukov commentedon Nov 24, 2025
Hi all - @Kump3r and I have prepared a draft of the Concourse API documentation in Markdown format. We hope it’s useful for anyone interested in working with or extending the ATC REST API. You can find the draft in the API Endpoint Quick Reference
section in concourse-api-docs repo.
@taylorsilva Since the official documentation is currently being migrated to MCdocs (as mentioned in the last cff working group meeting), we weren’t sure where contributions like this should live. Once the migration is complete, we’re happy to open a PR to integrate the API docs into the new structure.
If you have a preferred location or any guidance on how you’d like this incorporated, just let us know - we’re glad to help.
taylorsilva commentedon Nov 24, 2025
I think having it sit in a separate repo is a good spot for now. Thanks for sharing what you've got so far!
The website migration will be held off until we can migrate directly to zensical, which looks like it won't be too hard.
Zensical mentions they'll have integrated support for mkdocstrings: https://zensical.org/compatibility/plugins/
Which may make maintaining the API docs easier too!
Either way, this repo looks great. Once we've migrated the site, we can do a PR of your repo's content into the concourse/docs repo.