Returns information about the currently authenticated user's session. If the caller is not authenticated they will get a 401 Unauthorized status code.
This request has no parameters.
Returned if the currently authenticated user is returned.
CurrentUser
1
2
3
4
curl --request GET \
--url 'http://{baseurl}/rest/auth/1/session' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
Creates a new session for a user in Jira. Once a session has been successfully created it can be used to access any of Jira's remote APIs and also the web UI by passing the appropriate HTTP Cookie header. Note that it is generally preferrable to use HTTP BASIC authentication with the REST API. However, this resource may be used to mimic the behaviour of Jira's log-in page (e.g. to display log-in errors to a user).
the username and password to authenticate
string
string
Returned if the caller is authenticated. Contains information about the caller's session.
1
2
3
4
5
curl --request POST \
--url 'http://{baseurl}/rest/auth/1/session' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Logs the current user out of Jira, destroying the existing session, if any.
This request has no parameters.
Returned if the user was successfully logged out.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/rest/auth/1/session' \
--user 'email@example.com:<api_token>'
Rate this page: