Skip to main content
POST
/
notions
Python
import os
from qaip import Qaip

client = Qaip(
    api_key=os.environ.get("QAIP_API_KEY"),  # This is the default and can be omitted
)
notion = client.notions.create(
    name="name",
    page_id="page_id",
)
print(notion.id)
{
  "id": "<string>",
  "name": "<string>",
  "page_id": "<string>",
  "status": "unknown",
  "ingestion_setting_id": "<string>",
  "creation_time": 123,
  "start_time": 123,
  "end_time": 123,
  "error": {
    "title": "<string>",
    "message": "<string>"
  },
  "metadata": {
    "records": [
      {
        "key": "<string>",
        "val": "<string>",
        "type": "string"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
name
string
required

Name of the Notion data source

Maximum string length: 200
page_id
string
required

Notion page ID

Maximum string length: 2000
notion_token
string

One-time Notion integration token (mutually exclusive with secret_id)

secret_id
string

ID of a stored secret to use (mutually exclusive with notion_token)

rrule
string

Recurrence rule (RFC 5545 RRULE). Requires secret_id (not one-time token).

metadata
object

(reserved for future use) Additional metadata for the Notion data source

Response

Successfully created Notion data source

id
string
required

Notion data source ID

name
string
required

Name of the Notion ingestion setting

page_id
string
required

Notion page ID

status
enum<string>
required

Job status

Available options:
unknown,
queued,
not_started,
managed,
starting,
started,
success,
failure,
canceling,
canceled,
deleting,
delete_job_failure
ingestion_setting_id
string

Notion ingestion setting ID

creation_time
integer<int64>

Creation time (Unix timestamp in seconds)

start_time
integer<int64>

Job start time (Unix timestamp in seconds)

end_time
integer<int64>

Job end time (Unix timestamp in seconds)

error
object
metadata
object

(reserved for future use) Additional metadata for the Notion data source