LogoLogo
HomeDiscordConnect
URnetwork API Docs
URnetwork API Docs
  • Getting Started
  • About
  • API reference
    • Preferences
      • Set preferences
    • Hello
    • Stats
      • Last 90
      • Providers overview last 90
      • Providers
      • Provider last 90
    • Auth
      • Login
      • Login with password
      • Verify
      • Verify send
      • Password reset
      • Password set
      • Network check
      • Network create
      • Code create
      • Code login
    • Network
      • Auth client
      • Remove client
      • Clients
      • Provider locations
      • Find provider locations
      • Find locations
      • Find providers
      • Find providers2
      • Create provider spec
    • Feedback
      • Send feedback
    • Wallet
      • Balance
      • Validate address
      • Circle init
      • Circle transfer out
    • Subscription
      • Balance
      • Check balance code
      • Redeem balance code
      • Create payment id
    • Device
      • Add
      • Create share code
      • Share status
      • Confirm share
      • Create adopt code
      • Adopt status
      • Confirm adopt
      • Remove adopt code
      • Associations
      • Remove association
      • Set association name
      • Set name
      • Set provide
      • Share code
        • Qr.png
      • Adopt code
        • Qr.png
    • Connect
      • Control
    • Account
      • Payout wallet
      • Wallet
      • Wallets
        • Remove
      • Referral code
    • Transfer
      • Stats
  • Specification
Powered by GitBook
LogoLogo

URnetwork

  • Get the app
  • Docs
  • Feedback
  • Support

Copyright 2024 BringYour, Inc.

On this page

Was this helpful?

Export as PDF
  1. API reference
  2. Device

Add

PreviousDeviceNextCreate share code

Was this helpful?

post

Add a device, which can either be owned by the network or shared with the network. The code provided can be either adoption code or a share code. Once a code is added, the device becomes an associated device until confirmation. If the device is a shared device, it will remain an associated device after confirmation.

Authorizations
Body
codestringOptional

share code or adopt code

Responses
200Success
application/json
post
POST /device/add HTTP/1.1
Host: api.bringyour.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "code": "text"
}
200Success
{
  "code_type": "share",
  "code": "text",
  "device_name": "text",
  "associated_network_name": "text",
  "client_id": "text",
  "duration_minutes": 1,
  "error": {
    "message": "text"
  }
}