Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
  • Admin Key
  • Attachment
  • App Properties
  • Ancestors
  • Blog Post
  • Children
  • Classification Level
  • Comment
  • Content
  • Content Permissions
  • Content Properties
  • Custom Content
  • Database
  • Data Policies
  • Descendants
  • Folder
  • Label
  • Like
  • Operation
  • Page
  • Redactions
  • Space
  • Space Permissions
  • Space Permission Transition
  • Space Properties
  • Space Roles
  • Task
  • User
  • Version
  • Whiteboard
Cloud
Confluence Cloud / Reference / REST API v2

Database

Postman Collection
OpenAPI
POST

Create database

Creates a database in the space.

Permissions required: Permission to view the corresponding space. Permission to create a database in the space.

Data Security Policy: Not exempt from app access rules
Scopes
write:database:confluence

Connect app scope required: WRITE

Request

Query parameters

private

boolean

Request bodyapplication/json

spaceId

string

Required
title

string

parentId

string

Responses

Returned if the database was successfully created.

application/json

allOf [DatabaseSingle, object]

DatabaseSingle
object
POST/databases
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; var bodyData = `{ "spaceId": "<string>", "title": "<string>", "parentId": "<string>" }`; const response = await requestConfluence(`/wiki/api/v2/databases`, { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "id": "<string>", "type": "<string>", "status": "current", "title": "<string>", "parentId": "<string>", "parentType": "page", "position": 59, "authorId": "<string>", "ownerId": "<string>", "createdAt": "<string>", "spaceId": "<string>", "version": { "createdAt": "<string>", "message": "<string>", "number": 19, "minorEdit": true, "authorId": "<string>" }, "_links": { "base": "<string>" } }
GET

Get database by id

Returns a specific database.

Permissions required: Permission to view the database and its corresponding space.

Data Security Policy: Not exempt from app access rules
Scopes
read:database:confluence

Connect app scope required: READ

Request

Path parameters

id

integer

Required

Query parameters

include-collaborators

boolean

include-direct-children

boolean

include-operations

boolean

include-properties

boolean

Responses

Returned if the requested database is returned.

application/json

allOf [DatabaseSingle, object]

DatabaseSingle
object
GET/databases/{id}
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "id": "<string>", "type": "<string>", "status": "current", "title": "<string>", "parentId": "<string>", "parentType": "page", "position": 59, "authorId": "<string>", "ownerId": "<string>", "createdAt": "<string>", "spaceId": "<string>", "version": { "createdAt": "<string>", "message": "<string>", "number": 19, "minorEdit": true, "authorId": "<string>" }, "_links": { "base": "<string>" } }
DEL

Delete database

Delete a database by id.

Deleting a database moves the database to the trash, where it can be restored later

Permissions required: Permission to view the database and its corresponding space. Permission to delete databases in the space.

Data Security Policy: Not exempt from app access rules
Scopes
delete:database:confluence

Connect app scope required: DELETE

Request

Path parameters

id

integer

Required

Responses

Returned if the database was successfully deleted.

DEL/databases/{id}
1 2 3 4 5 6 7 8 9 10 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}`, { method: 'DELETE' }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.text());
GET

Get fields for databaseExperimental

Returns the field definitions (schema) for a database, ordered by the user-defined column order, using cursor-based pagination.

Consistency: Responses may not immediately reflect recent changes. Clients requiring read-after-write confirmation should poll with bounded backoff.

Experimental: This operation is experimental and may change in backwards-incompatible ways without notice.

Permissions required: Permission to view the database and its corresponding space.

Data Security Policy: Not exempt from app access rules
Scopes
read:database:confluence

Connect app scope required: READ

Request

Path parameters

id

string

Required

Query parameters

limit

integer

cursor

string

Header parameters

If-None-Match

string

Responses

Returned if the requested database fields are returned.

Headers

application/json

DatabaseFieldListResponse
GET/databases/{id}/fields
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}/fields`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "results": [ { "id": "<string>", "name": "<string>", "description": "<string>", "type": "text", "settings": { "richText": true } } ], "_links": { "self": "<string>", "base": "<string>", "next": "<string>" }, "meta": { "pageSize": 46, "cursor": "<string>", "hasMore": true } }
GET

Get views for databaseExperimental

Returns the views defined on a database using cursor-based pagination. Only view IDs, names, and types are returned; view configuration is not exposed.

Consistency: Responses may not immediately reflect recent changes. Clients requiring read-after-write confirmation should poll with bounded backoff.

Experimental: This operation is experimental and may change in backwards-incompatible ways without notice.

Permissions required: Permission to view the database and its corresponding space.

Data Security Policy: Not exempt from app access rules
Scopes
read:database:confluence

Connect app scope required: READ

Request

Path parameters

id

string

Required

Query parameters

limit

integer

cursor

string

Header parameters

If-None-Match

string

Responses

Returned if the requested database views are returned.

Headers

application/json

DatabaseViewListResponse
GET/databases/{id}/views
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}/views`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "results": [ { "id": "<string>", "name": "<string>", "type": "table" } ], "_links": { "self": "<string>", "base": "<string>", "next": "<string>" }, "meta": { "pageSize": 46, "cursor": "<string>", "hasMore": true } }
GET

Get entries for databaseExperimental

Returns the entries (rows) of a database, with optional filtering, sorting, and cursor-based pagination. Entry values are keyed by field ID; use Get fields for database (GET /databases/{id}/fields) to map field IDs to names.

Filtering is expressed with bracket-scoped query parameters keyed on field ID. The exact operators vary by field type and are documented on the filter parameter. Multiple filters are combined with AND. Unsupported operators and non-filterable fields return distinct structured 400 responses.

Pagination uses opaque, offset-based continuation tokens and is best effort while a database is changing. Concurrent inserts, deletes, or changes to a sort value can cause duplicate or omitted rows across pages. Restart from the first page when a consistent export is required.

Results are based on the database, not a particular view. A view's filters, sorting, grouping, and field visibility do not affect the response.

Consistency: Responses may not immediately reflect recent changes. Clients requiring read-after-write confirmation should poll with bounded backoff.

Experimental: This operation is experimental and may change in backwards-incompatible ways without notice.

Permissions required: Permission to view the database and its corresponding space.

Data Security Policy: Not exempt from app access rules
Scopes
read:database:confluence

Connect app scope required: READ

Request

Path parameters

id

string

Required

Query parameters

limit

integer

cursor

string

sort

string

filter

object

Header parameters

If-None-Match

string

Responses

Returned if the requested database entries are returned.

Headers

application/json

DatabaseEntryListResponse
GET/databases/{id}/entries
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}/entries`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "results": [ { "id": "<string>", "databaseId": "<string>", "values": {} } ], "_links": { "self": "<string>", "base": "<string>", "next": "<string>" }, "meta": { "pageSize": 46, "cursor": "<string>", "hasMore": true } }
GET

Get entry by idExperimental

Returns a single entry (row) from a database by ID.

Consistency: Responses may not immediately reflect recent changes. Clients requiring read-after-write confirmation should poll with bounded backoff.

Experimental: This operation is experimental and may change in backwards-incompatible ways without notice.

Permissions required: Permission to view the database and its corresponding space.

Data Security Policy: Not exempt from app access rules
Scopes
read:database:confluence

Connect app scope required: READ

Request

Path parameters

id

string

Required
entryId

string

Required

Header parameters

If-None-Match

string

Responses

Returned if the requested database entry is returned.

Headers

application/json

DatabaseEntrySingleResponse

A single entry, not wrapped in a results array, with a _links.self path and an absolute _links.base URL.

GET/databases/{id}/entries/{entryId}
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}/entries/{entryId}`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 { "id": "<string>", "databaseId": "<string>", "values": {}, "_links": { "self": "<string>", "base": "<string>", "next": "<string>" } }

Rate this page: