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

# Fetch text by project id

> Returns the contents of the Ditto project referred to by :id. You can find the id of a Ditto project from its URL: https://app.dittowords.com/doc/:id. Only projects with Developer Mode enabled can be fetched. 



## OpenAPI

````yaml openapi-legacy.json get /projects/{id}
openapi: 3.0.0
info:
  version: 1.0.0
  title: Ditto API
  description: Programmatically read and write data in your Ditto workspace.
servers:
  - url: https://api.dittowords.com/v1
security: []
paths:
  /projects/{id}:
    get:
      tags:
        - Projects
      summary: Fetch text by project id
      description: >-
        Returns the contents of the Ditto project referred to by :id. You can
        find the id of a Ditto project from its URL:
        https://app.dittowords.com/doc/:id. Only projects with Developer Mode
        enabled can be fetched. 
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
            description: >-
              The API ID of the variant. If specified, will filter for text
              items or components that have the variant, and will return the
              attributes (e.g. text, status) of that text item's or component's
              variant.
            example: french
          required: false
          description: >-
            The API ID of the variant. If specified, will filter for text items
            or components that have the variant, and will return the attributes
            (e.g. text, status) of that text item's or component's variant.
          name: variant
          in: query
        - schema:
            type: string
            enum:
              - flat
              - structured
              - nested
              - icu
              - android
              - ios-strings
              - ios-stringsdict
            example: structured
          required: false
          name: format
          in: query
        - schema:
            type: string
            enum:
              - NONE
              - WIP
              - REVIEW
              - FINAL
            example: FINAL
          required: false
          name: status
          in: query
        - schema:
            type: boolean
          required: false
          name: includeRichText
          in: query
        - schema:
            type: boolean
          required: false
          name: exclude_components
          in: query
        - schema:
            type: boolean
          required: false
          name: includeTimeData
          in: query
      responses:
        '200':
          description: Returns contents of a project in the flat format
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
                example:
                  login-web-header-login: Log In
                  login-web-formbody-emailaddress: Email address
                  login-web-formbody-namecompanycom: name@company.com
                  login-web-formbody-password: Password
                  login-web-formbody-forgotpassword: Forgot Password?
                  login-web-footer-login: Log In
                  login-web-footer-donthaveanaccount: Don’t have an account?
                  login-web-footer-signup: Sign Up
                  login-mobile-header-login: Log In
                  login-mobile-formbody-emailaddress: Email address
                  login-mobile-formbody-namecompanycom: name@company.com
                  login-mobile-formbody-password: Password
                  login-mobile-formbody-forgotpassword: Forgot Password?
                  login-mobile-footer-login: Log In
                  login-mobile-footer-donthaveanaccount: Don’t have an account?
                  login-mobile-footer-signup: Sign Up
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````