API access available with trial?

Adam Smye-Rumsby April 19, 2019

Just signed up for 7-day trial of JIRA cloud.   Trying to test the API, doing a POST to /rest/api/3/issue using Basic auth with the credentials I specified when signing up for the trial.  Receive a 401 Unauthorized error in response however.  Do trials include API access?  Thanks.

1 answer

1 vote
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2019

Hey Adam, welcome to the Community and glad you're really digging in to Jira on your trial!

You should be able to interact with the API during your trial. However, we've been making changes to how the APIs are authorized which might have not been apparent in documentation you read.

Instead of using the password for your user account, you'll want to generate a token from  id.atlassian.com and use that for the password in your Basic Auth configuration.

From our document about generating API tokens:

  1. Log in to https://id.atlassian.com/manage/api-tokens.
  2. Click Create API token.
  3. From the dialog that appears, enter a memorable and concise Label for your token and click Create.
  4. Click Copy to clipboard, then paste the token to your script, or elsewhere to save:

Note:

  • For security reasons it isn't possible to view the token after closing the creation dialog; if necessary, create a new token.
  • You should store the token securely, just as for any password.

Hope that helps get you rocking with the API, and let me know if you have more questions!

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer