> ## Documentation Index
> Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an app

> Returns an app the caller can see: any active app, or one of the caller's own pending apps. The owning company
gets the owned form; every other company gets the shared form.



## OpenAPI

````yaml https://docs-cdn.narrative.io/api-reference/main/openapi.json get /v2/apps/{app_slug}
openapi: 3.1.1
info:
  contact:
    email: support@narrative.io
    name: Narrative Support
    url: https://www.narrative.io
  termsOfService: https://www.narrative.io/legal/terms-of-service
  x-logo:
    url: >-
      https://cdn.narrative.io/images/company-logos/prod/narrative-logo-text-white.svg
    backgroundColor: rgb(9, 34, 166)
    altText: Narrative Logo
  description: >-
    The [Narrative Data Collaboration Platform](https://app.narrative.io) API is
    organized around REST. Our API has predictable resource-oriented URLs,
    accepts form-encoded request bodies, returns JSON-encoded responses, and
    uses standard HTTP response codes, authentication, and verbs.



    The current version is a pre-release beta.  It may result in unexpected
    behavior and there may be breaking changes in future releases up to the 1.0
    release.
  title: Narrative Data Collaboration Platform API
  version: 2.4.x
servers:
  - url: https://api-dev.narrative.io
  - url: https://api.narrative.io
security: []
tags:
  - name: Access Rules
    description: >-
      Access rules let data providers control who can purchase their data and
      the terms of purchase.


      The `access-rules` API allows you to manage access rules for your
      datasets.


      Related guides:
        - [What is an access rule?](https://kb.narrative.io/access-rules)
  - name: Agent Conversations
    description: >-
      Build LLM-driven workflows that can call MCP tools, ask the caller for
      input, and return structured answers.


      A conversation pins a model, a system prompt, and a tool catalog. Each run
      sends the model a user message (or

      a batch of tool outputs from a previously-paused run); the model decides
      whether to answer directly, call a

      server-side tool (resolved by the platform via Model Context Protocol), or
      call a client-side tool (which pauses

      the run with `requires_action` and waits for the caller to reply).


      Related guides:
        - [Agent Conversations Reference](https://docs.narrative.io/reference/architecture/agent-conversations)
        - [Error catalog](https://docs.narrative.io/reference/architecture/agent-conversations/errors/conversation-not-found)
  - name: MCP Connections
    description: >-
      Connect external (non-Narrative) MCP servers so agent runs can call their
      tools with the

      calling user's own OAuth authorization.


      A connection is created interactively: `POST /mcp-connections` runs OAuth
      discovery and

      Dynamic Client Registration against the server and returns a consent URL;
      the user authorizes

      in a browser; the authorization server redirects to `GET
      /mcp-connections/callback`, which

      stores the authorization code and sends the browser on to the Narrative
      app; the app calls

      `POST /mcp-connections/complete` with the user's own bearer token, which
      exchanges the code and

      marks the connection `connected`.


      That last step is authenticated on purpose. The callback is public — it's
      a cross-site browser

      redirect, so no bearer reaches it — so it is not allowed to complete
      anything. Only the user

      who started the flow can turn the stored code into a token.


      Tokens are stored encrypted and used server-side — they are never returned
      by the API. Once

      connected, reference the connection by id from an agent run's
      `mcp_servers[].connection_id`.
  - name: App Invites
    description: >-
      App invites allow applications to create one-time, shareable links on
      behalf of their users. These links

      enable users to invite third parties who do not have a Narrative account
      to perform actions within the

      application.


      For example, a Narrative user can send an invite link to a third party who
      then completes a Pinterest

      OAuth flow and creates a connector profile in the inviter's account,
      allowing the inviter to deliver

      audience data to the third party's Pinterest account without the third
      party needing a Narrative account.


      This API is intended to be used by applications (via app client
      credentials) to create and manage invites

      on behalf of their users, which can then be shared with invitees.
  - name: Apps
    description: >-
      Apps are applications bundled with a UI that can perform various actions
      on behalf of a user utilizing the Narrative API.

      Related guides:
        - [Building a Narrative Native App](https://www.narrative.io/knowledge-base/how-to-guides/building-a-narrative-native-app)
  - name: Access Tokens
    description: >-
      System Access Tokens are long-lived bearer credentials for calling the API
      without a user present.


      A token belongs to a company, carries an explicit list of permissions, and
      expires on a date you choose — at

      least a day out and at most a year. `admin` access cannot be granted to
      one.


      `POST /access-tokens/tokens` is the only endpoint that returns the
      credential. Everything after that works in

      terms of the token's id: the list, get and update responses describe a
      token without ever repeating its

      `access_token`. If you lose it, delete the token and create another.


      Related guides:
        - [How to Create an API Token](https://www.narrative.io/knowledge-base/how-to-guides/understanding-narratives-apis/create-an-api-token)
  - name: Attributes
    description: >-
      An attribute models a standardized data point available for sale on the
      Narrative marketplace.


      Narrative automatically turns data points from provider datasets into
      attributes so that buyers can purchase well-formed, standardized data from
      any supplier on the marketplace.
  - name: Auth
    description: >-
      API token is a crucial step for developers to securely authenticate
      requests to the Narrative API

      Related guides:
        - [How to Create an API Token](https://www.narrative.io/knowledge-base/how-to-guides/understanding-narratives-apis/create-an-api-token)
  - name: Authentication
    description: User login and registration
  - name: Billings
    description: Used by Narrative internally to bill customers
  - name: Companies
    description: A collection of employees
  - name: Company Marketing Information
    description: Useful information related to companies
  - name: Compute Pools
    description: >-
      Compute pools represent compute resources (e.g. Snowflake warehouses)
      provisioned within a data plane.

      Companies can manage and share compute pools, assign them to jobs, and set
      a default compute pool on data planes.
  - name: Connections
    description: Associations between connectors and datasets
  - name: Datasets
    description: >-
      Any kind of data, in any schema, can be pushed into the Narrative Data
      Collaboration Platform as a dataset exactly as it is stored in your own
      system.


      The `datasets` API allows you to manage your datasets.
  - name: Derivations
    description: >-
      Derivation rules describe how the value of one Rosetta Stone attribute can
      be computed from another — for

      example, hashing a raw email into a SHA-256 hashed email. Each rule
      carries a transformation expression that

      reads the source attribute's value through `$source`.


      The `derivations` API allows you to browse the rules your company can use
      — the ones it owns plus the ones

      shared with it through collaborators. Creating and changing them requires
      an `admin` grant on

      `attribute_derivations`, and a rule can only be changed by the company
      that owns it.
  - name: Installations
    description: Installations of Applications for a profile
  - name: Jobs
    description: >-
      Jobs represent an operation done on a given data plane. All jobs today are
      tied to a query that represents a forecast or a materialized view.


      The jobs API provides an interface for interacting with the jobs table,
      which stores various operations involving reading or writing data. This
      API allows users to retrieve detailed information about specific jobs,
      including NQL forecasts and materialized views.
  - name: Mappings
    description: >-
      A mapping is a transformation from a dataset to an attribute. Defining a
      mapping between a dataset and an attribute makes the dataset eligible to
      participate in subscriptions where a buyer is purchasing the target
      attribute.
  - name: Model Inference
    description: Model Inference
  - name: Model Training
    description: >-
      Train machine learning models on datasets, e.g. text classifiers used to
      power attribute mappings.
  - name: Models
    description: >-
      Machine learning models for training and inference.


      Models can be stored in HuggingFace or Narrative repositories and have
      configurable

      collaborator permissions for training and inference access.


      The `models` API allows you to list, retrieve, and update models
      accessible to your company.
  - name: NQL
    description: >-
      Narrative Query Language (NQL) is a specialized, SQL-inspired language
      designed to query and manipulate data within the Narrative platform. While
      it looks and feels much like standard SQL, it offers extended
      functionality and syntax that let you leverage platform-specific
      features—such as referencing datasets by their IDs, creating materialized
      views, or generating forecasts—without having to manage the complexities
      of different query engines behind the scenes. NQL queries can ultimately
      compile down to multiple underlying engines (e.g., Snowflake, Spark) to
      execute your requests efficiently in the Narrative ecosystem.
  - name: Profiles
    description: >-
      App profiles are associated with an installation. They represent a
      reference to a configuration that the app can use to save confidential
      information outside of Narrative's control.

      Profiles are currently used to configure settings for connector apps.
  - name: Resources
    description: >-
      Narrative gives you access to managed resources, like your own AWS S3
      bucket, so that you can effortlessly buy and sell data on the platform.


      The `resources` API allows you to manage your resources.
  - name: Schema Inference
    description: >-
      The `schema-inference` API analyzes submitted files to automatically infer
      and return their structure as a dataset schema.
  - name: Uploads
    description: >-
      The `uploads` API allows you to send files to Narrative and use them to
      perform tasks like creating a list or adding data to a dataset.
  - name: Usage
    description: >-
      The `usage` API enables the recording of usage events associated with a
      product.
  - name: Webhooks
    description: >-
      Webhooks push events to a URL you control instead of making you poll for
      them.


      You create a subscription with the endpoint you want events sent to and a
      filter describing which events you

      want. Two kinds of subscription exist: job subscriptions follow the
      lifecycle of Narrative jobs, and app

      subscriptions follow the events a Narrative app reports through `POST
      /apps/events`.


      Creating a subscription returns a `secret`. Narrative sends it back in the
      `X-Narrative-Secret` header on

      every delivery, and comparing the two is how you tell a real callback from
      a forged one — so store it and do

      not share it.


      Deliveries are described under the "Event delivery" webhook below. Return
      any 2xx; anything else is retried

      with exponential backoff, and because a retry reuses the envelope's `id`,
      handlers should be idempotent

      on it.
  - name: Workflows
    description: >-
      The `workflows` API allows you to create, schedule, trigger, and archive
      workflows.

      Workflows are defined using a serverlessworkflow YAML specification.
paths:
  /v2/apps/{app_slug}:
    get:
      tags:
        - Apps
      summary: Get an app
      description: >-
        Returns an app the caller can see: any active app, or one of the
        caller's own pending apps. The owning company

        gets the owned form; every other company gets the shared form.
      parameters:
        - $ref: '#/components/parameters/AppV2Slug'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppV2Response'
        '403':
          description: |-
            This error is raised when:
            - The token is not a user token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: |-
            This error is raised when:
            - No app the caller can see has this slug
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  parameters:
    AppV2Slug:
      name: app_slug
      in: path
      required: true
      description: The app's slug.
      schema:
        $ref: '#/components/schemas/AppV2Slug'
  schemas:
    AppV2Response:
      description: >-
        An app as seen by the caller. The owning company gets the full app
        (`type` is `owned`); every other company

        gets the shared form, without credentials or lifecycle fields.
      oneOf:
        - $ref: '#/components/schemas/OwnedAppV2Response'
        - $ref: '#/components/schemas/SharedAppV2Response'
      discriminator:
        propertyName: type
        mapping:
          owned:
            $ref: '#/components/schemas/OwnedAppV2Response'
          shared:
            $ref: '#/components/schemas/SharedAppV2Response'
    Error:
      type: object
      required:
        - error
        - error_description
      properties:
        error:
          type: string
          example: Unauthorized
        error_description:
          type: string
          example: You are not authorized to use this endpoint.
    AppV2Slug:
      description: >-
        The app's unique, permanent name: 1-256 lowercase letters, digits or
        underscores. Chosen at creation and never

        changes. Slugs are unique regardless of case, so a slug that differs
        from an existing one only by case is taken.
      type: string
      pattern: ^[a-z0-9_]{1,256}$
      example: facebook_connector
    OwnedAppV2Response:
      type: object
      required:
        - type
        - id
        - slug
        - status
        - manifest
        - client_id
        - created_at
        - updated_at
      properties:
        type:
          type: string
          enum:
            - owned
        id:
          $ref: '#/components/schemas/AppV2Id'
        slug:
          $ref: '#/components/schemas/AppV2Slug'
        status:
          $ref: '#/components/schemas/AppV2Status'
        manifest:
          $ref: '#/components/schemas/AppManifestV2'
        client_id:
          $ref: '#/components/schemas/AppV2ClientId'
        created_at:
          $ref: '#/components/schemas/AppV2Timestamp'
        updated_at:
          $ref: '#/components/schemas/AppV2Timestamp'
    SharedAppV2Response:
      type: object
      required:
        - type
        - id
        - slug
        - manifest
        - created_at
        - updated_at
      properties:
        type:
          type: string
          enum:
            - shared
        id:
          $ref: '#/components/schemas/AppV2Id'
        slug:
          $ref: '#/components/schemas/AppV2Slug'
        manifest:
          $ref: '#/components/schemas/AppManifestV2'
        created_at:
          $ref: '#/components/schemas/AppV2Timestamp'
        updated_at:
          $ref: '#/components/schemas/AppV2Timestamp'
    AppV2Id:
      description: The app's id. Installations refer to the app by it.
      type: integer
      example: 42
    AppV2Status:
      description: |-
        - `pending`: visible to and installable by the owning company only.
        - `active`: visible to and installable by every company.
        - `archived`: visible to nobody.
      type: string
      enum:
        - pending
        - active
        - archived
    AppManifestV2:
      description: >-
        What the app is, what it can do, and how it is listed. Only
        `manifest_version` and `display_name` are required;

        everything else may be left out while the app is pending. An active app
        must also fill the listing card:

        `short_description`, `long_description`, `icon`, `headline_image`,
        `background_color` and

        `developer_information`.
      type: object
      required:
        - manifest_version
        - display_name
      properties:
        manifest_version:
          description: The manifest format. `1.0.0` is the only supported version.
          type: string
          enum:
            - 1.0.0
        display_name:
          description: The app's name as shown to users. Non-empty, at most 256 characters.
          type: string
          example: Facebook Connector
        capabilities:
          type: array
          items:
            $ref: '#/components/schemas/AppManifestV2Capability'
        api_url:
          description: >-
            The app's own API. Required when `capabilities` includes
            `connector_api`. Must be an absolute https URL.
          type: string
          example: https://facebook-connector.example.com/api
        required_scopes:
          description: >-
            The permissions an installing company grants the app. `admin` access
            is not allowed.
          type: array
          items:
            $ref: '#/components/schemas/Permission'
        app_token_scopes:
          description: >-
            The permissions of tokens issued to the app itself through `POST
            /oauth/token`. `admin` access is not allowed.
          type: array
          items:
            $ref: '#/components/schemas/Permission'
        ui_url:
          description: Where the app's UI is served. Must be an absolute https URL.
          type: string
          example: https://facebook-connector.example.com
        launch_path:
          $ref: '#/components/schemas/AppManifestV2LaunchPath'
        embedding:
          $ref: '#/components/schemas/AppManifestV2Embedding'
        pages:
          type: array
          items:
            $ref: '#/components/schemas/AppManifestV2Page'
        listing:
          $ref: '#/components/schemas/AppManifestV2Listing'
    AppV2ClientId:
      description: >-
        The app's OAuth client id, hex-encoded — the form `POST /oauth/token`
        accepts.
      type: string
      example: 85b558340b635861575c462a10df3bd5
    AppV2Timestamp:
      description: An ISO-8601 local date-time in UTC, without an offset.
      type: string
      example: '2026-09-24T17:21:03.120581'
    AppManifestV2Capability:
      description: >-
        - `destination_connector`: delivers data to an external destination.

        - `model_connector`: connects a model.

        - `connector_api`: implements the connector API at `api_url`, which
        Narrative calls.
      type: string
      enum:
        - destination_connector
        - model_connector
        - connector_api
    Permission:
      description: >-
        One grant: a level of access to one resource. A token carries a list of
        these, and an endpoint checks for the

        exact pair it needs — `read`/`datasets` does not imply
        `write`/`datasets`, and neither implies anything about

        another resource.
      type: object
      required:
        - access
        - resource
      properties:
        access:
          description: The level of access.
          type: string
          enum:
            - read
            - write
        resource:
          $ref: '#/components/schemas/PermissionResource'
      example:
        resource: datasets
        access: read
    AppManifestV2LaunchPath:
      description: Where opening the app takes the user.
      oneOf:
        - $ref: '#/components/schemas/AppManifestV2NativeLaunchPath'
        - $ref: '#/components/schemas/AppManifestV2ExternalLaunchPath'
      discriminator:
        propertyName: type
        mapping:
          native:
            $ref: '#/components/schemas/AppManifestV2NativeLaunchPath'
          external:
            $ref: '#/components/schemas/AppManifestV2ExternalLaunchPath'
    AppManifestV2Embedding:
      type: object
      properties:
        device_permissions:
          type: array
          items:
            type: string
        initial_guest_path:
          type: string
          example: /
    AppManifestV2Page:
      type: object
      required:
        - eligible_path
        - navigation
      properties:
        eligible_path:
          type: string
          example: connector-settings
        visible_path:
          type: string
        navigation:
          $ref: '#/components/schemas/AppManifestV2PageNavigation'
    AppManifestV2Listing:
      description: How the app appears in the marketplace.
      type: object
      properties:
        headlines:
          $ref: '#/components/schemas/AppManifestV2Headlines'
        short_description:
          type: string
        long_description:
          type: string
        meta_description:
          type: string
        icon:
          $ref: '#/components/schemas/AppManifestV2Image'
        headline_image:
          $ref: '#/components/schemas/AppManifestV2Image'
        background_color:
          type: string
          example: '#E7E3CE'
        merchandising_sections:
          description: Section `order` values must be unique.
          type: array
          items:
            $ref: '#/components/schemas/AppManifestV2MerchandisingSection'
        developer_information:
          $ref: '#/components/schemas/AppManifestV2DeveloperInformation'
        tags:
          type: array
          items:
            type: string
    PermissionResource:
      description: >-
        The resource a permission applies to. `schema_template` is also accepted
        on input as a legacy alias for

        `schema_preset`, but responses always use `schema_preset`.
      type: string
      enum:
        - access_tokens
        - agent_conversations
        - api_info
        - app_events
        - app_invites
        - app_profiles
        - apps
        - attribute_derivations
        - attributes
        - billings
        - charges
        - commands_subscriptions_delivery
        - company_info
        - compute_pools
        - connections
        - contracts
        - data_plane_logs
        - data_planes
        - data_streams
        - datasets
        - deliveries
        - destinations
        - encryption_materials
        - events_subscriptions_transaction
        - forecasts
        - inference
        - installations
        - internal_reports
        - jobs
        - lists
        - mappings
        - model_inference
        - model_training
        - models
        - nql
        - payment_methods
        - persistent_permissions
        - products
        - profile_store_data
        - profile_store_schema
        - queries
        - resources
        - schema_preset
        - subscriptions
        - uploads
        - usage
        - users
        - views
        - webhooks
        - workflows
    AppManifestV2NativeLaunchPath:
      type: object
      required:
        - type
        - path
      properties:
        type:
          type: string
          enum:
            - native
        path:
          description: A page of the app inside Narrative.
          type: string
          example: connector-settings
    AppManifestV2ExternalLaunchPath:
      type: object
      required:
        - type
        - url
      properties:
        type:
          type: string
          enum:
            - external
        url:
          description: An absolute https URL outside Narrative.
          type: string
          example: https://facebook-connector.example.com/setup
    AppManifestV2PageNavigation:
      type: object
      required:
        - title
        - icon
      properties:
        title:
          type: string
          example: Connector Settings
        icon:
          type: string
          example: display-list
        pill:
          type: string
        show_as_button:
          type: boolean
        button_variant:
          type: string
    AppManifestV2Headlines:
      type: object
      required:
        - tagline
        - body
      properties:
        tagline:
          type: string
        body:
          type: string
    AppManifestV2Image:
      type: object
      required:
        - name
        - image
        - image_type
        - alt_text
      properties:
        name:
          type: string
        image:
          description: The image data, base64-encoded.
          type: string
        image_type:
          description: The image's media type.
          type: string
          example: image/svg+xml
        alt_text:
          type: string
        width:
          type: integer
        height:
          type: integer
    AppManifestV2MerchandisingSection:
      type: object
      required:
        - title
        - subtitle
        - order
        - image
      properties:
        title:
          type: string
        subtitle:
          type: string
        order:
          type: integer
        image:
          $ref: '#/components/schemas/AppManifestV2Image'
    AppManifestV2DeveloperInformation:
      type: object
      required:
        - name
        - website
        - support_email
        - privacy_policy
      properties:
        name:
          type: string
        website:
          type: string
        support_website:
          type: string
        support_email:
          type: string
        privacy_policy:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````