Trilium Backend API
    Preparing search index...

    Interface BEtapiToken

    EtapiToken is an entity representing token used to authenticate against Trilium REST API from client applications. Used by:

    • Trilium Sender
    • ETAPI clients

    The format user is presented with is "_". This is also called "authToken" to distinguish it from tokenHash and token.

    interface BEtapiToken {
        blobId?: string;
        dateCreated?: string;
        dateModified?: string;
        etapiTokenId?: string;
        isProtected?: boolean;
        isSynced?: boolean;
        name: string;
        tokenHash: string;
        utcDateCreated: string;
        utcDateModified?: string;
        get becca(): default;
        get isDeleted(): boolean;
        _getContent(): string | Buffer<ArrayBufferLike>;
        _setContent(
            content: string | Buffer<ArrayBufferLike>,
            opts?: ContentOpts,
        ): void;
        beforeSaving(): void;
        generateHash(isDeleted?: boolean): string;
        getPojo(): {
            etapiTokenId: string;
            isDeleted: boolean;
            name: string;
            tokenHash: string;
            utcDateCreated: string;
            utcDateModified: string;
        };
        getPojoToSave(): {};
        getUtcDateChanged(): string;
        hasStringContent(): boolean;
        init(): void;
        markAsDeleted(deleteId?: string): void;
        markAsDeletedSimple(): void;
        putEntityChange(isDeleted: boolean): void;
        save(opts?: {}): this;
        updateFromRow(row: EtapiTokenRow): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    blobId?: string
    dateCreated?: string
    dateModified?: string
    etapiTokenId?: string
    isProtected?: boolean
    isSynced?: boolean
    name: string
    tokenHash: string
    utcDateCreated: string
    utcDateModified?: string

    Accessors

    • get becca(): default

      Returns default

    • get isDeleted(): boolean

      Returns boolean

    Methods

    • Parameters

      • OptionalisDeleted: boolean

      Returns string

    • Returns {
          etapiTokenId: string;
          isDeleted: boolean;
          name: string;
          tokenHash: string;
          utcDateCreated: string;
          utcDateModified: string;
      }

    • Returns void

    • Mark the entity as (soft) deleted. It will be completely erased later.

      This is a low-level method, for notes and branches use note.deleteNote() and 'branch.deleteBranch()` instead.

      Parameters

      • OptionaldeleteId: string

      Returns void

    • Parameters

      • isDeleted: boolean

      Returns void

    • Saves entity - executes SQL, but doesn't commit the transaction on its own

      Parameters

      • Optionalopts: {}

      Returns this