Skip to main content

User-related API environment

Pre-live user-related API docs

These pages describe the Pre-live user-related API stack.

Use pre-live OAuth credentials, pre-live API base URLs, and pre-live app URLs when following this documentation. Keep your OAuth flow, API requests, callback URLs, and manual testing within the pre-live environment.

Add note

Add a new note.

Request Body
    body string required

    Possible values: >= 6 characters and <= 10000 characters

    The main content of the note, must be between the specified minimum and maximum length.

    saveToQR boolean

    Default value: false

    Indicates whether the note should be saved to the QuranReflect.

    attachedEntity object
    entityId string required

    The unique identifier for the attached entity.

    entityType string required

    Possible values: [reflection]

    The type of the attached entity, must be one of the predefined NoteEntityType values.

    entityMetadata object

    Additional metadata for the attached entity.

    ranges string[]

    Possible values: Value must match regular expression ^(\d+):(\d+)-(\d+):(\d+)$

    An array of verse ranges associated with the note.

    clientCreatedAt object

    Client-local timestamp when this resource was created. Accepts ISO 8601 date strings or JavaScript Unix timestamps in milliseconds.

    oneOf

    string

    Client-local timestamp when this resource was created. Accepts ISO 8601 date strings or JavaScript Unix timestamps in milliseconds.

    clientUpdatedAt object

    Client-local timestamp when this resource was last updated. Accepts ISO 8601 date strings or JavaScript Unix timestamps in milliseconds.

    oneOf

    string

    Client-local timestamp when this resource was last updated. Accepts ISO 8601 date strings or JavaScript Unix timestamps in milliseconds.

Responses

Request has been handled successfully.

Response Headers
  • X-Mutation-At string

    Unix timestamp (milliseconds) of the latest mutation for the user. Clients should store this value and include it in subsequent mutation requests for optimistic concurrency control.


Schema
    success boolean
    data object
    id string required

    The unique identifier of the note.

    createdAt date-time required

    The creation date of the note.

    updatedAt date-time required

    The last update date of the note.

    body string required

    Possible values: >= 6 characters and <= 10000 characters

    The main content of the note, must be between the specified minimum and maximum length.

    source string

    The source of the note.

    attachedEntities object[]

    An array of attached entities associated with the note.

  • Array [
  • entityId string required

    The unique identifier for the attached entity.

    entityType string required

    Possible values: [reflection]

    The type of the attached entity, must be one of the predefined NoteEntityType values.

    entityMetadata object

    Additional metadata for the attached entity.

  • ]
  • ranges string[]

    Possible values: Value must match regular expression ^(\d+):(\d+)-(\d+):(\d+)$

    An array of verse ranges associated with the note.

Loading...