I have been attempting to use Jira API to create jira cards. I kept receiving the following error: {"errorMessages":["You do not have permission to create issues in this project."],"errors":{}}.
I attempted to figure out what was going on since I gave the API token all possible scopes and set max project permissions for creating issues.
I used the following command to check if it is just an issue with the authentication:
curl -H "Content-Type: application/json" -u "[my email]:[my token]" --url "https://[my base url].atlassian.net/rest/api/3/myself"
and received:
Client must be authenticated to access this resource.
What do I need to do get it to work?
Hi @Jane Brusilovsky, Welcome to Atlassian Community!
To create a Work Item (previously referred to as an "Issue") in Jira Cloud using the REST API, you’ll need to interact with the Create Issue endpoint:
POST /rest/api/3/issue
📘 API Documentation – Create Issue
For the issue creation to succeed, your request payload (in JSON) must include some essential fields:
Project Key or Project ID (project.key
or project.id
) – to specify the project where the issue will be created
Issue Type ID (issuetype.id
) – to define the type of work item (e.g., Task, Bug, Story)
Summary (summary
) – a brief description or title of the issue
Any other required custom fields that are marked mandatory in the Jira configuration for that project and issue type
If any required fields are missing or contain invalid data, the API will return an error and the issue will not be created.
Since required fields can vary between projects and issue types (due to field configurations, screens, and workflows), it's best to use the Create Meta API to determine what fields are required before attempting to create the issue.
Use the following endpoint to fetch all issue types available for a specific project:
GET /rest/api/3/issue/createmeta/{projectIdOrKey}/issuetypes
📘 API – Get Create Meta (Project Level)
This returns a list of issue types configured in the specified project.
Once you’ve identified the issue type you want to work with, you can fetch its metadata to see all the fields (including which ones are required and what options are available):
GET /rest/api/3/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}
📘 API – Get Create Meta (Issue Type Level)
This will return details about:
All fields applicable for the issue type
Which fields are required
Allowed values (e.g., dropdown options, field types)
Field schemas (like string, array, number, etc.)
@Jane Brusilovsky Just to add to my earlier response, API tokens with specific scopes are tied to OAuth 2.0 (3LO) and cannot be used directly with standard Jira REST API endpoints.
To use OAuth 2.0 tokens, you'll first need to construct the request using the appropriate resource URL that includes your Cloud ID, as outlined in the documentation:
🔗 Enabling OAuth 2.0 (3LO) for Atlassian Cloud
Your API endpoint should look like this:
https://api.atlassian.com/ex/jira/{cloudid}/rest/api/3/myself
You can also retrieve the cloudid following the steps mentioned in this Atlassian guide.
Below curl command should work for fetching your profile details,
curl --request GET \
--url 'https://api.atlassian.com/ex/jira/{cloudId}/rest/api/3/myself' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.