github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/search/in_account.yaml (about)

     1  ---
     2  summary: Search across projects
     3  description: 'Search for keys and translations in all account projects <br><br><i>Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.</i>'
     4  operationId: search/in_account
     5  tags:
     6  - Search
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/account_id"
    10  responses:
    11    '200':
    12      description: OK
    13      content:
    14        application/json:
    15          schema:
    16            "$ref": "../../schemas/account_search_result.yaml#/account_search_result"
    17      headers:
    18        X-Rate-Limit-Limit:
    19          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    20        X-Rate-Limit-Remaining:
    21          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    22        X-Rate-Limit-Reset:
    23          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    24    '400':
    25      "$ref": "../../responses.yaml#/400"
    26    '404':
    27      "$ref": "../../responses.yaml#/404"
    28    '429':
    29      "$ref": "../../responses.yaml#/429"
    30  x-code-samples:
    31  - lang: Curl
    32    source: |-
    33      curl "https://api.phrase.com/v2/accounts/:account_id/search" \
    34        -u USERNAME_OR_ACCESS_TOKEN \
    35        -X POST \
    36        -F query=keyword \
    37        -F locale_code=localecode \
    38        -F page=1 \
    39        -F per_page=25 \
    40  - lang: CLI v2
    41    source: |-
    42      phrase search in_account \
    43      --account_id <account_id> \
    44      --data '{"q":"keyword","locale_code": "de","page": 1,"per_page": 25}' \
    45      --access_token <token>
    46  requestBody:
    47    required: true
    48    content:
    49      application/json:
    50        schema:
    51          type: object
    52          title: search/in_account/parameters
    53          properties:
    54            query:
    55              description: Search query
    56              type: string
    57              example: keyword
    58            locale_code:
    59              description: Locale code
    60              type: string
    61              example: de_DE
    62            page:
    63              description: Page
    64              type: integer
    65              example: 1
    66            per_page:
    67              description: Number of results per page
    68              type: integer
    69              example: 25
    70  x-cli-version: '2.5'