On this page

    1. Home
    2. API
    3. API Reference
    4. Network
    5. Find Providers

    Find Providers

    The find-providers endpoint allows you to discover specific client (provider) IDs that are currently available to serve traffic for a given location or location group.


    POST /network/find-providers

    Find available provider IDs based on location criteria.

    Request

    POST /network/find-providers

    Headers:

    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN

    Body:

    {
      "location_id": "string",
      "location_group_id": "string",
      "count": 5,
      "exclude_location_ids": ["string"]
    }
    FieldTypeDescription
    location_idstringOptional. UDID of the specific location to target.
    location_group_idstringOptional. UDID of the location group to target.
    countintegerOptional. The maximum number of provider IDs to return.
    exclude_location_idsarrayOptional. List of location UDIDs to ignore in the search.

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "client_ids": ["string"]
    }
    FieldTypeDescription
    client_idsarrayA list of client UDIDs (provider devices) matching the search criteria.

    Example

    HTTP Request

    POST /network/find-providers HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {
      "location_id": "8db2938a-0000-4fac-88bc-000000000000",
      "count": 3
    }

    Successful HTTP Response

    {
      "client_ids": [
        "c73040c1-0000-4444-8888-000000000001",
        "c73040c1-0000-4444-8888-000000000002",
        "c73040c1-0000-4444-8888-000000000003"
      ]
    }


    Powered by Sudoc v2.5.0
    Hide table of contents