On this page

    1. Home
    2. API
    3. API Reference
    4. Device
    5. Device Share Status

    Device Share Status

    This endpoint allows the initiator of a device share to check if the guest network has accepted or confirmed the invitation. It provides the current state of the sharing process and the name of the participating network.


    POST /device/share-status

    Retrieve information about a specific share code, including whether it is still pending acceptance.

    Request

    POST /device/share-status

    Headers:

    {
      "Host": "api.bringyour.com",
      "Content-Type": "application/json",
      "Authorization": "Bearer <YOUR_JWT_TOKEN>"
    }

    Body:

    {
      "share_code": "string"
    }

    Fields

    FieldTypeDescription
    share_codestringRequired. The unique invitation code for the device share.

    Response

    200 Success

    Status: 200 OK Content-Type: application/json

    {
      "pending": true,
      "associated_network_name": "string",
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    pendingbooleantrue if the share invitation has not yet been confirmed by the guest.
    associated_network_namestringThe display name of the network involved in the share.
    errorobjectDetails if the status lookup failed.
    error.messagestringHuman-readable explanation of any error.

    Example

    HTTP Request

    POST /device/share-status HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {
      "share_code": "SHARE-1234-5678"
    }

    Successful HTTP Response

    {
      "pending": false,
      "associated_network_name": "GuestNetwork01",
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents