# Workflow transition rules

**URL:** <https://community.developer.atlassian.com/t/workflow-transition-rules/81573>\
**Category:** Forge\
**Tags:** curl, jira-cloud, rest-api\
**Created:** [July 4, 2024, 9:24am UTC](https://community.developer.atlassian.com/t/workflow-transition-rules/81573 "2024-07-04T09:24:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaygami](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jaygami](https://community.developer.atlassian.com/u/jaygami)\
**Post date:** [July 4, 2024, 9:24am UTC](https://community.developer.atlassian.com/t/workflow-transition-rules/81573/1 "2024-07-04T09:24:21Z")

</div>

[https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-transition-rules/#api-group-workflow-transition-rules](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-transition-rules/#api-group-workflow-transition-rules)

[https://jay.atlassian.net/rest/api/3/workflow/rule/config?=postfunction](https://jay.atlassian.net/rest/api/3/workflow/rule/config?=postfunction)  
using this i am trying to fetch workflow rules

but i get  
{“errorMessages”:[“Only apps can access this resource.”],“errors”:{}}

but i didn’t know how i get this api response it would be better if you provide some guidence or step or some type of resource

---

<div class="post-metadata">

**Author:** ![ibuchanan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ibuchanan/32/35815_2.png) [@ibuchanan](https://community.developer.atlassian.com/u/ibuchanan)\
**Post date:** [July 4, 2024, 11:17am UTC](https://community.developer.atlassian.com/t/workflow-transition-rules/81573/2 "2024-07-04T11:17:03Z")

</div>

@jaygami,

Can you explain how you are authenticating to that REST API?

---

<div class="post-metadata">

**Author:** ![jaygami](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jaygami](https://community.developer.atlassian.com/u/jaygami)\
**Post date:** [July 4, 2024, 11:34am UTC](https://community.developer.atlassian.com/t/workflow-transition-rules/81573/3 "2024-07-04T11:34:07Z")

</div>

i am using curl code from my commandline but it get error “Only apps can access this resource”

---

<div class="post-metadata">

**Author:** ![AaronCollier](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@AaronCollier](https://community.developer.atlassian.com/u/AaronCollier)\
**Post date:** [July 4, 2024, 1:18pm UTC](https://community.developer.atlassian.com/t/workflow-transition-rules/81573/4 "2024-07-04T13:18:28Z")

</div>

You shouldn’t be using curl for this endpoint:

> [@Get workflow transition rule configurations](https://community.developer.atlassian.com/t/get-workflow-transition-rule-configurations/81006/5):
>
> Using Forge, it would be something like this: import api, { route } from "@forge/api"; const response = await api.asApp().requestJira(route`/rest/api/3/workflow/rule/config?types= postfunction`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json()); Note that the URL you posted is missing types, so it’d be https://jay.atlassian.net/rest/api/3/workflow/rule/config?types=postfunction, but y…

---

<div class="post-metadata">

**Author:** ![ibuchanan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ibuchanan/32/35815_2.png) [@ibuchanan](https://community.developer.atlassian.com/u/ibuchanan)\
**Post date:** [July 4, 2024, 1:39pm UTC](https://community.developer.atlassian.com/t/workflow-transition-rules/81573/5 "2024-07-04T13:39:46Z")

</div>

@jaygami,

To elaborate @AaronCollier, not all endpoints provide all forms of auth. In this case, auth is only provided through [Forge](https://go.atlassian.com/forge) and [Connect](https://developer.atlassian.com/cloud/jira/platform/understanding-jwt-for-connect-apps/). API tokens and basic auth won’t work; hence, no curl.
