Set Up the REST API
Fieldify's REST API lets tools outside Jira list the files in a File Field, download them and add files to a field. Three people take part in setting it up: a site or organization admin turns on App REST APIs, a Jira administrator allows an account, and that account creates an OAuth 2.0 integration. Inside Jira, the Automation actions do the same kind of work without an integration.
Turn on the REST API
App REST APIs are off by default. A site admin or an organization admin turns them on for each site.
Open Fieldify in Connected apps
In Atlassian Administration, select your organization, then Apps → Sites → your site → Connected apps. Find Fieldify and select View app details.
Enable App REST APIs
On the Details tab, choose Enable app REST APIs and confirm. The section then shows the API's base URL. Disabling it later blocks every call at once.
If the Details tab has no App REST APIs section and App access shows Outdated, choose Update first to approve Fieldify's pending permissions. The section appears after the update.
While App REST APIs are on, any member of your organization with a verified Atlassian account can create an integration for the API. Fieldify answers only the accounts a Jira administrator allows.
Allow an account
Open the Fieldify REST API page
Go to Jira settings → Apps → Fieldify REST API. Only Jira administrators can open it.
Choose the account and select Allow
Under Allowed accounts, search for the account in Allow an account and select Allow. Choose the account that will grant your integration its consent: Fieldify checks that account on every call, whoever runs the tool.

Allow adds the chosen account to the list, under the one already allowed
An allowed account can read and add files in every File Field on every work item on the site, whatever its space permissions. Its writes skip the work item's edit permission and workflow conditions, and Jira records them as made by Fieldify. Fieldify does not log which file an allowed account read or wrote. Allow only accounts you would trust with every File Field on the site.
Use an account made for the integration, not a person's own account. An integration is private to the account that created it, and only that account can grant it consent, so tools built on a person's integration stop working when that person leaves.
The list holds up to 10 accounts. Next to each one, the page shows Last used with the date of its latest call, or Never. Remove takes an account off the list: its next call is refused, and an import it started that is still queued adds nothing.
Create an OAuth 2.0 integration
The API accepts OAuth 2.0 (3LO) access tokens only.
Create the integration
Sign in to the Atlassian Developer Console as the account you allowed in Fieldify, and create an OAuth 2.0 (3LO) integration.
Add the scopes
Under Permissions, add Fieldify with Add Marketplace or custom app and select
read:file-field:customto read files,write:file-field:customto add them, or both. Then add Jira API, open its Granular scopes tab, choose Edit Scopes and selectread:forge-app:jira. If your tool adds large files through a Jira attachment, also select the Jira scopesread:jira-workandwrite:jira-work.Copy the authorization URL
Under Authorization, choose Configure next to OAuth 2.0 (3LO) and enter the URL your tool listens on in Callback URLs. The Authorization URL generator on that page then shows its URLs. Copy the one in the row that starts with Marketplace App: Fieldify, not Granular Jira API authorization URL. A token from the Jira row, or from an authorization URL built by hand, lacks Fieldify's scopes.
Add the scopes the URL lacks
Check the
scopeparameter of the URL. For a tool that runs unattended, addoffline_access. For large files through an attachment, addread:jira-workandwrite:jira-work. Separate scopes with a space, encoded as%20.Grant consent
Open the URL as the allowed account, pick your site and choose Accept. The consent screen lists Fieldify's scopes in a section of their own: Read File Field files, Add files to File Fields, or both.
After the consent, your tool exchanges the authorization code for an access token and authenticates its calls with that
token. Access tokens expire after one hour. With offline_access, the tool also gets a refresh token, which it uses to
get new access tokens. Each refresh returns a new refresh token that replaces the one used, so the tool saves it before
its next call. Atlassian's OAuth 2.0 (3LO) apps
guide covers the token exchange and refreshing.
Build the base URL
Every operation's path, such as /v1/files, is added to your site's base URL. The Fieldify REST API page shows the
base URL under Base URL. It looks like this:
https://api.atlassian.com/svc/jira/<cloud-id>/apps/5f2edfae-1945-473f-874e-99fba4a4cba2_9dd13fa4-cc83-4cdd-8e68-459a0fbe97f7
To list the files of a field, your tool calls that address followed by /v1/files. If the page shows no base URL, put
your site's cloud ID in place of <cloud-id>: it is the cloudId value at
https://<your-site>.atlassian.net/_edge/tenant_info.
The REST API Reference describes every operation, and REST API Examples shows them at work in a Python script.