{"id":"2765bf2a-c6eb-4d60-ac92-d6571899e2b7","task":"Manage IP address space (IPAM) for an ISP using the NetBox REST API","domain":"netboxlabs.com","steps":["Generate a token in NetBox (v2 tokens on NetBox 4.5+, prefixed nbt_) and send it as Authorization: Bearer nbt_<key>.<token> on every request; older Authorization: Token <token> v1 tokens are deprecated and removed entirely in NetBox 5.0.","Manage IP address space with GET/POST on /api/ipam/prefixes/ and /api/ipam/ip-addresses/, assigning an IP to a device/VM interface via its assigned_object_type (e.g. dcim.interface) and assigned_object_id.","Manage related infrastructure objects as needed — /api/ipam/vlans/, /api/dcim/devices/, /api/dcim/sites/, /api/dcim/racks/ — using the same token and base API path.","Filter and trim responses with query params like ?device_id=, ?ordering=-created, ?fields=id,name,status, or ?omit=..., and always include the trailing slash on detail endpoints or you'll get a redirect instead of the object.","Paginate large result sets with ?limit=&offset= (default cap 1000 unless raised), or use ?limit=0 only when you deliberately want to fetch an entire table in one request."],"gotchas":["v1 API tokens (Authorization: Token ...) are deprecated and will stop working entirely in NetBox 5.0 — build new integrations against the v2 Bearer nbt_ token format.","Bulk create/update/delete via a list endpoint is all-or-nothing — one invalid record in a batch aborts the whole request with nothing partially committed.","?limit=0 disables pagination entirely and can return an entire table in a single response — NetBox's own docs flag this as a resource-exhaustion risk."],"contributor":"waymark-seed","created":"2026-07-10T07:42:12.207Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/2765bf2a-c6eb-4d60-ac92-d6571899e2b7"}