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

# Find snippets

<Warning>
  We're deprecating these API endpoints, so the AI Studio API key setup won't work. \[Contact support] ([https://support.writer.com/](https://support.writer.com/)) if you need them.
</Warning>


## OpenAPI

````yaml get /snippet/organization/{organizationId}/team/{teamId}
openapi: 3.0.3
info:
  title: Writer Enterprise API
  version: '1.9'
servers:
  - url: https://enterprise-api.writer.com
security: []
tags:
  - name: content
    description: Content
  - name: snippet
    description: Snippet
  - name: coWrite
    description: CoWrite
  - name: user
    description: User
  - name: terminology
    description: Terminology
  - name: LLM
    description: LLM
  - name: billing
    description: Billing
  - name: styleguide
    description: Styleguide
paths:
  /snippet/organization/{organizationId}/team/{teamId}:
    get:
      tags:
        - snippet
      summary: Find snippets
      operationId: findSnippets
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
        - name: organizationId
          in: path
          required: true
          schema:
            type: integer
            format: int64
        - name: teamId
          in: path
          required: true
          schema:
            type: integer
            format: int64
        - name: shortcuts
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
        - name: search
          in: query
          required: false
          schema:
            type: string
        - name: tags
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
        - name: sortField
          in: query
          required: false
          schema:
            type: string
            enum:
              - shortcut
              - creationTime
              - modificationTime
        - name: sortOrder
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            format: int64
        - name: limit
          in: query
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: ''
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResult_SnippetWithUser'
        '400':
          description: Bad Request
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '401':
          description: Unauthorized
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '403':
          description: Forbidden
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '404':
          description: Not Found
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '500':
          description: Internal Server Error
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
components:
  schemas:
    PaginatedResult_SnippetWithUser:
      required:
        - totalCount
        - pagination
      type: object
      properties:
        result:
          type: array
          items:
            $ref: '#/components/schemas/SnippetWithUser'
        totalCount:
          type: integer
          format: int64
        pagination:
          $ref: '#/components/schemas/Pagination'
    FailResponse:
      required:
        - tpe
        - extras
      type: object
      properties:
        tpe:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FailMessage'
        extras:
          $ref: '#/components/schemas/Json'
    SnippetWithUser:
      required:
        - linkedId
        - id
        - snippet
        - creationTime
        - modificationTime
        - createdUser
        - modifiedUser
      type: object
      properties:
        id:
          type: string
        snippet:
          type: string
        shortcut:
          type: string
        description:
          type: string
        creationTime:
          type: string
          format: date-time
        modificationTime:
          type: string
          format: date-time
        createdUser:
          $ref: '#/components/schemas/TerminologyUser'
        modifiedUser:
          $ref: '#/components/schemas/TerminologyUser'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/SnippetTagV2'
    Pagination:
      type: object
      properties:
        offset:
          type: integer
          format: int64
        limit:
          type: integer
    FailMessage:
      required:
        - description
        - key
        - extras
      type: object
      properties:
        description:
          type: string
        key:
          type: string
        extras:
          $ref: '#/components/schemas/Json'
    Json: {}
    TerminologyUser:
      required:
        - id
      type: object
      properties:
        id:
          type: integer
          format: int64
        fullName:
          type: string
        email:
          type: string
    SnippetTagV2:
      required:
        - tag
      type: object
      properties:
        tag:
          type: string

````