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

> ## Agent Instructions
> Decodo provides web scraping and proxy infrastructure. For agent-specific guidance - which endpoint to call, how to authenticate, and the usage rules - read https://help.decodo.com/docs/for-agents.md.
> Add .md to any page URL on this site to get its Markdown source.
> Search these docs live over MCP at https://help.decodo.com/mcp.

# Check sub-user credentials

> Checks whether a sub-user username and password pair is valid for proxy authentication.
`valid` is `false` for wrong credentials and also when the check itself fails.




## OpenAPI

````yaml /api-reference/jero_public_api.yaml post /v2/users/sub-users/check-credentials
openapi: 3.1.0
info:
  title: Decodo Public API
  version: 2.0.0
  summary: >-
    Manage residential proxy sub-users, whitelisted IPs and subscriptions, and
    generate proxy endpoints.
  description: >
    The Decodo Public API lets you manage the proxy sub-users and whitelisted
    IPs of your Decodo account,

    read subscription details and generate ready-to-use proxy connection
    strings.


    ## Authentication


    Create an API key in the dashboard under **Settings → API Keys**

    (https://dashboard.decodo.com/profile?tab=api-keys) and send it as is in the
    `Authorization` header

    of every request. Do not add a `Bearer` prefix. The key is a 140–180
    character alphanumeric string.


    The `/v2/endpoints*` operations are public and do not need an API key.


    ## Product support


    Sub-user, whitelisted IP and subscription operations work with the
    Residential proxies product.

    Datacenter and ISP products are not supported.


    ## Units


    Traffic values are in decimal gigabytes (1 GB = 10^9 bytes), rounded to two
    decimals.


    ## Errors


    Most errors use the `Error` object (`error_code` and `message`). Request
    validation errors of the

    `/v2/endpoints-custom*` operations use the `ValidationError` object. A few
    input checks return a plain

    JSON string; they are listed on the affected operations.
  contact:
    name: Decodo support
    url: https://decodo.com
servers:
  - url: https://api.decodo.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Sub-users
    description: >-
      Manage proxy sub-users (proxy authentication users) of the Residential
      subscription.
  - name: Whitelisted IPs
    description: >-
      Manage IP addresses allowed to use the Residential proxies without a
      username and password.
  - name: Endpoints
    description: >-
      List proxy entry points and generate proxy connection strings. These
      operations do not need an API key.
  - name: Subscriptions
    description: Read subscription details.
paths:
  /v2/users/sub-users/check-credentials:
    post:
      tags:
        - Sub-users
      summary: Check sub-user credentials
      description: >
        Checks whether a sub-user username and password pair is valid for proxy
        authentication.

        `valid` is `false` for wrong credentials and also when the check itself
        fails.
      operationId: check-sub-user-credentials
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckCredentialsRequest'
      responses:
        '200':
          description: Result of the check.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckCredentialsResult'
        '400':
          description: >-
            `username`, `password` or `service_type` is missing. The body is a
            plain JSON string.
          content:
            application/json:
              schema:
                type: string
              example: Wrong payload provided
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    CheckCredentialsRequest:
      type: object
      required:
        - username
        - password
        - service_type
      properties:
        username:
          type: string
          example: my_sub_user
        password:
          type: string
          example: Secret_Pass123
        service_type:
          type: string
          example: residential_proxies
    CheckCredentialsResult:
      type: object
      required:
        - valid
      properties:
        valid:
          type: boolean
          example: true
    Error:
      type: object
      required:
        - error_code
        - message
      properties:
        error_code:
          type: string
          enum:
            - bad_request
            - invalid_request_data
            - unauthorized
            - forbidden
            - not_found
            - internal_error
        message:
          type: string
          description: Human-readable description of the error.
        error:
          type: object
          description: >-
            Field-specific messages, keyed by field name (`username`,
            `password`).
          additionalProperties:
            type: string
  responses:
    Unauthorized:
      description: The API key is missing, malformed or not accepted.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing:
              summary: No Authorization header
              value:
                error_code: unauthorized
                message: Api key not provided
            malformed:
              summary: Authorization header is not a valid API key
              value:
                error_code: unauthorized
                message: Invalid Api key provided
            rejected:
              summary: API key not accepted
              value:
                error_code: unauthorized
                message: Authorization header is invalid
    InternalError:
      description: Unexpected error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error_code: internal_error
            message: Unexpected error occurred
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >
        API key from the dashboard (Settings → API Keys), sent as is without a
        `Bearer` prefix.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.