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

     1  ---
     2  summary: Show current User
     3  description: Show details for current User.
     4  operationId: show/user
     5  tags:
     6  - Users
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  responses:
    10    '200':
    11      description: OK
    12      content:
    13        application/json:
    14          schema:
    15            "$ref": "../../schemas/current_user.yaml#/user"
    16      headers:
    17        X-Rate-Limit-Limit:
    18          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    19        X-Rate-Limit-Remaining:
    20          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    21        X-Rate-Limit-Reset:
    22          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    23    '400':
    24      "$ref": "../../responses.yaml#/400"
    25    '404':
    26      "$ref": "../../responses.yaml#/404"
    27    '429':
    28      "$ref": "../../responses.yaml#/429"
    29  x-code-samples:
    30  - lang: Curl
    31    source: |-
    32      curl "https://api.phrase.com/v2/user" \
    33        -u USERNAME_OR_ACCESS_TOKEN
    34  - lang: CLI v2
    35    source: |-
    36      phrase shows user \
    37      --access_token <token>
    38  x-cli-version: '2.5'