@makehq/sdk
    Preparing search index...

    Class Keys

    Class providing methods for working with Make keys. Keys allow secure storage of sensitive information like API keys, passwords, and tokens that can be used in apps without exposing the actual values.

    Index

    Constructors

    Methods

    • Delete a key.

      Parameters

      • keyId: number

        The key ID to delete

      Returns Promise<void>

      Promise that resolves when the key is deleted

    • Lock a key: only the members of its access list can see it, and the caller becomes its sole admin. Only the key's author can lock it. The API answers 400 (IM903) where locked connections are off for the organization.

      Parameters

      • keyId: number

        The key ID to lock

      Returns Promise<EntityVisibilityChange<"locked">>

      Promise with the key's ID and its new visibility

    • Make a locked key visible to the whole team again and clear its access list. Only an admin of the locked key can do this. The API answers 400 (IM903) where locked connections are off for the organization.

      Parameters

      • keyId: number

        The key ID to make team-visible

      Returns Promise<EntityVisibilityChange<"team">>

      Promise with the key's ID and its new visibility