Replit home pagelight logodark logo
  • Docs
  • Tutorials
  • Trust & Billing
  • Replit Teams
  • Changelog
  • May 2025
    • May 9, 2025
    • May 2, 2025
    April 2025
    • April 25, 2025
    • April 18, 2025
    • April 11, 2025
    • April 4, 2025
    March 2025
    • March 28, 2025
    • March 21, 2025
    • March 14, 2025
    • March 7, 2025
    February 2025
    • February 28, 2025
    • February 21, 2025
    • February 14, 2025
    • February 7, 2025
    January 2025
    • January 31, 2025
    • January 24, 2025
    • January 17, 2025
    • January 10, 2025
    • January 3, 2025
    December 2024
    • December 27, 2024
    • December 20, 2024
    • December 13, 2024
    • Start Building
    Replit home pagelight logodark logo
    • Start Building
    • Start Building
    API Reference

    API Reference

    Complete reference documentation for all Replit extension APIs, including authentication, commands, filesystem access, and workspace integration.

    Manifest

    The extension.json file contains the manifest for an Extension and is required for publishing to the Extensions Store.

    Authentication API

    Allows secure authentication of Replit users when they use your extension.

    Background Script API

    Scripts loaded when the Replit App opens, remaining active until uninstalled or workspace closure.

    Commands API

    Register commands that can be run from the CLUI command bar and other contribution points.

    Data API

    Get information and metadata exposed from Replit’s GraphQL API.

    Debug API

    Log data to the Extension Devtools.

    Editor API

    Get the current user’s editor preferences.

    Exec API

    Execute arbitrary shell commands.

    Filesystem API

    Create, read, and modify files on the replit app’s filesystem.

    Initialization API

    Initialize the Extension and establish a handshake with the Replit App, and adds an event listener to the window object. It takes as an argument an object containing optional parameters for the initialization process. It returns a function that removes the event listener added to the window object.

    Me API

    Exposes information specific to the current extension.

    Messages API

    Allows you to send custom notices in the Replit workspace.

    ReplDB API

    Simple key-value store for storing replit app specific data.

    Session API

    Provides information on the current user’s coding session in the workspace.

    Themes API

    Allows access to the current user’s theme and color tokens.

    Was this page helpful?

    xlinkedinyoutube
    Powered by Mintlify