bgp43
bgp43
Website is still in beta Bugs and errors can occur. Please report anything that looks broken, confusing, or unsafe.
Contact

Developers

Customer API and MCP server

Everything the dashboard does, as a JSON REST API and as an MCP server for AI assistants. One token, one set of operations, the same checks and limits as the dashboard.

REST base URLhttps://bgp43.net/api/v1
MCP endpointhttps://bgp43.net/api/mcp
Operations82 (29 read-only)

Getting started

The API works on your own account only: the objects you can see and change are exactly the ones in your dashboard.

  1. Sign in, open Dashboard → API and create a token. Choose Read for monitoring and Read and write for automation.
  2. Copy the token. It is shown once and starts with bgp43_.
  3. Send it as Authorization: Bearer <token> with every request.
Shell
export BGP43_TOKEN='bgp43_…'
curl -sS https://bgp43.net/api/v1/account -H "Authorization: Bearer $BGP43_TOKEN"
curl -sS https://bgp43.net/api/v1/tunnels -H "Authorization: Bearer $BGP43_TOKEN"

Authentication

Every request needs a personal access token in the Authorization header. Browser sessions and cookies are not accepted, so the API needs no CSRF token.

  • A token belongs to one account and can do at most what that account can do in the dashboard.
  • Tokens expire after 30, 90 or 365 days, or never; revoke a token in the dashboard at any time.
  • Changing or resetting the password revokes every token of the account.
  • A blocked account or an account whose email address is not verified gets 403 on every request.
  • Only a hash of the token is stored. A lost token cannot be shown again; create a new one.
ScopeAllows
readEvery GET operation and the looking glass. Nothing on the account can change.
writeEverything, including operations that create, change or delete tunnels, BGP sessions, RPKI objects and tickets.

Each token may make 1200 requests per hour across REST and MCP. Operations that change the network also count against the same per-account limits as the dashboard. An account can hold 10 active tokens.

Requests and responses

  • Request and response bodies are JSON (UTF-8). Send Content-Type: application/json with a body.
  • GET parameters go in the query string; POST, PUT, PATCH and DELETE parameters go in a JSON object body. Path IDs are integers.
  • Unknown parameters are rejected, so a typo never silently does nothing.
  • Times are UTC in RFC 3339 (2026-11-13T17:58:00Z). Traffic is in bytes and bits per second.
  • List operations return {"items": [...], "count": n}. A create answers 201, everything else 200.
  • Every response carries Cache-Control: no-store. Note the request_id of an error when you contact support.
Shell
curl -sS -X POST https://bgp43.net/api/v1/tunnels \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "wireguard", "location": "nl|amsterdam", "asn_id": 12, "create_bgp": true}'

Errors

A failed request answers with an HTTP error status and a JSON error object. The message is safe to show to a user; the code is stable and meant for programs.

JSON
{"error": {"code": "invalid_params", "message": "…", "params": ["remote_endpoint"], "request_id": "…"}}
StatusCodeMeaning
400invalid_paramsA parameter is missing, of the wrong type or unknown; params lists them.
400invalid_jsonThe body is not a JSON object.
401unauthorizedNo token, or the token is invalid, expired or revoked.
403insufficient_scopeA read-only token called a write operation.
403account_blocked / email_unverifiedThe account cannot use the API right now.
404not_foundThe object does not exist or belongs to another account.
409conflict / transfer_requiredThe change conflicts with an existing object.
415unsupported_media_typeA request body was sent without Content-Type: application/json.
422refusedThe request is valid but was refused by a policy check (limits, RPKI, IRR, ownership). The message says why.
429rate_limitedToo many requests; wait for the Retry-After header.
500internal_errorSomething failed on our side; it was logged with the request ID.
503rpki_unavailableThe RPKI back end is temporarily unavailable.

Asynchronous network changes

Router configuration is deployed in the background. A call that changes the network returns as soon as the change is accepted and queued.

  • New tunnels and BGP sessions start in status creating and move to ready once the router has applied them, usually within a minute or two, or to failed.
  • Poll get_tunnel or get_bgp_session, at most every few seconds, until the status settles.
  • A deleted object disappears from lists immediately; the router configuration is removed in the background.
  • BGP state, receives and traffic counters are refreshed periodically; updated_at fields tell you how fresh they are.

Partners

A partner account resells BGP43 to its own customers. For every customer it creates a client: a separate BGP43 account with its own ASNs, tunnels, BGP sessions, BYOIP, hosted RPKI, Free IPv6 and traffic, kept apart from the partner's own account and from every other client. The partner manages each client completely, through this API or in its dashboard.

  • Clients follow exactly the same rules as any BGP43 customer: an ASN must be verified by e-mail from a registry contact or by a remark in its aut-num object, prefixes must be covered by registry objects, and limits, RPKI, IRR and ASPA checks apply. Being a partner skips none of them.
  • A client has transit (downstream) and peering sessions only. Every peering session on BGP43 takes its AS-SET from the peer's PeeringDB record automatically; a transit session may carry its own AS-SET only when BGP43 has switched on Own IRR AS-SET for your partnership.
  • The partner answers for its clients. Clients have no sign-in, password or API tokens of their own; every notice about a client is mailed to the partner and names the client.
  • Which services the partner may run for its clients is set by BGP43 for each partnership.

Getting started

  1. Ask BGP43 support to make your account a partner. The administrator sets the services you may offer your clients and your limits.
  2. Create an API token in the dashboard under API. Choose read and write access to create and change clients and their resources.
  3. Call get_partner to see your status, the included services and your limits.
Your partnership, services and limits
curl -sS https://bgp43.net/api/v1/partner \
  -H "Authorization: Bearer $BGP43_TOKEN"

Managing clients

The partner operations always run as the partner itself.

  • create_partner_client takes a name and an optional reference, your own customer ID; the answer carries the client's BGP43 ID.
  • list_partner_clients lists your clients; ?reference= finds the client for one of your customer IDs.
  • update_partner_client renames a client or changes its reference.
  • delete_partner_client with confirm: true deletes the client and removes all its tunnels, sessions, ASNs, hosted RPKI and other resources.
  • New clients get the tunnel and traffic limits of your partnership; the number of clients is limited too.
Create, find, rename and delete a client
# Create a client; the answer carries its ID, here 1234
curl -sS -X POST https://bgp43.net/api/v1/partner/clients \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "ACME Inc.", "reference": "cust-1042"}'

# Find the client for your own customer ID
curl -sS "https://bgp43.net/api/v1/partner/clients?reference=cust-1042" \
  -H "Authorization: Bearer $BGP43_TOKEN"

# Rename it
curl -sS -X PATCH https://bgp43.net/api/v1/partner/clients/1234 \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "ACME Corporation"}'

# Delete it together with all its resources
curl -sS -X DELETE https://bgp43.net/api/v1/partner/clients/1234 \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'

Acting for a client

Every other operation works on a client when you name it: send the header BGP43-Client: <id>, or client_id in the query, the JSON body or the MCP arguments. Without it, the request works on your own account.

  • Only your own clients can be named. Another partner's client or an unknown ID answers 404 client_not_found.
  • The header and client_id must not disagree; partner operations (/partner/...) do not accept a client.
  • IDs of tunnels, sessions, ASNs and so on are the client's own: an object of another client or of your own account answers 404.
  • A suspended partnership cannot act for its clients until it is active again.
Request an ASN, verify it, then build a tunnel for a client
# Request AS64500 for client 1234; it starts unverified
curl -sS -X POST https://bgp43.net/api/v1/asns \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: 1234" \
  -H "Content-Type: application/json" \
  -d '{"asn": "AS64500"}'

# After the registry remark is in place, verify it (or verify/email after mailing from a registry contact)
curl -sS -X POST https://bgp43.net/api/v1/asns/77/verify/remarks \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: 1234"

# Build a GRE tunnel with a BGP session for the verified ASN; LOCATION_KEY is a key from list_locations
curl -sS -X POST https://bgp43.net/api/v1/tunnels \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: 1234" \
  -H "Content-Type: application/json" \
  -d '{"type": "gre", "remote_endpoint": "198.51.100.10", "location": "LOCATION_KEY", "asn_id": 77, "create_bgp": true}'

# client_id works in the query as well
curl -sS "https://bgp43.net/api/v1/tunnels?client_id=1234" \
  -H "Authorization: Bearer $BGP43_TOKEN"

Step-by-step procedures

Each procedure below lists what has to exist first, every step in order, and the requests to send. They build on each other: a client comes first, then a verified ASN, then a tunnel, then the BGP sessions. The examples use the variables set here; CLIENT is the ID create_partner_client returned.

Variables used in the procedures
export BGP43_API=https://bgp43.net/api/v1
export BGP43_TOKEN='bgp43_…'
export CLIENT=1234

BGP43's own ASN, used as BYOIP origin and as ASPA provider: AS197324
Verification mailbox: verify@bgp43.net

Procedures: 1. Create the client and act as it · 2. Add and verify the client's ASN · 3. Build a tunnel · 4. Transit (downstream) BGP session · 5. Peering BGP session · 6. BYOIP: announce the client's prefix from BGP43 · 7. RPKI: Use Hosted RPKI · 8. RPKI: Use BGP43 as publication server · 9. Free IPv6 · 10. Traffic and support

1. Create the client and act as it

Everything you do for a customer happens on that customer's client account. Always create the client first; every later step then runs as that client.

Needs

  • An active partnership and an API token with read and write access.

Steps

  1. Call create_partner_client with the customer's name and, as reference, your own customer ID. Keep the id from the answer: it is the client ID.
  2. Send BGP43-Client: <client ID> (or client_id) with every request for this customer. The request then acts as the client: it sees and creates only the client's ASNs, tunnels, sessions, BYOIP, RPKI and tickets, and the client's limits apply.
  3. Later, find the client again with list_partner_clients?reference=<your customer ID>.
  4. In the dashboard, open the Partner tab and choose Manage resources on the client. The banner at the top shows which client you act as; Back to partner returns to your own account.

Good to know

  • Never build a customer's resources on your own partner account. Tunnels and sessions cannot be moved to a client later; an ASN can only be moved with a new ownership proof (transfer).
  • Requests without a client work on your own account and follow the ordinary customer rules.
Requests
curl -sS -X POST $BGP43_API/partner/clients \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "ACME Inc.", "reference": "cust-1042"}'
# the answer carries "id": 1234
export CLIENT=1234

# from now on every request carries the client
curl -sS "$BGP43_API/account" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

2. Add and verify the client's ASN

Tunnels and BGP sessions belong to an approved ASN. Approval needs proof that the client controls the ASN in its registry, followed by a review by BGP43.

Needs

  • The client (procedure 1) and access to a registry contact mailbox of the ASN or to its aut-num object.

Steps

  1. Call create_asn as the client with the AS number. BGP43 reads the registry contacts. The ASN starts as awaiting_email, or as needs_contact when the registry publishes no usable mail address.
  2. Call get_asn. verification.code is the code, verification.remark the remarks line and verification.contacts the registry addresses that may send the proof mail.
  3. Prove control in one of two ways. By mail: from one of the listed contacts, send a mail that contains the code unchanged to the verification mailbox shown above, then call verify_asn_email; matched: false means it has not arrived yet, so try again a few minutes later. By remarks: add the remarks line to the ASN's aut-num object in its registry, then call verify_asn_remarks. You may remove the line after approval.
  4. After a successful proof the ASN moves to pending_review. A BGP43 operator approves or rejects it; the result is mailed to you and names the client. Poll get_asn until status is approved.

Good to know

  • If the registry contacts were wrong and you have fixed them, call refresh_asn_contacts before mailing.
  • An ASN that is already on another account, including your own partner account, needs create_asn with transfer: true and the same proof.
  • Prefix limits come from PeeringDB; refresh_asn_prefix_limits reads them again.
  • cancel_asn withdraws a request that is still being verified; delete_asn removes an ASN.
Requests
curl -sS -X POST $BGP43_API/asns \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"asn": "AS64500"}'
# the answer carries "id": 77
curl -sS "$BGP43_API/asns/77" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

# after mailing the code from a registry contact
curl -sS -X POST $BGP43_API/asns/77/verify/email \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"
# or, after adding the remarks line to aut-num AS64500
curl -sS -X POST $BGP43_API/asns/77/verify/remarks \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

3. Build a tunnel

A tunnel connects the client's router to a BGP43 router. BGP sessions over a tunnel, transit or peering, are created on it afterwards.

Needs

  • An approved ASN (procedure 2) and the Tunnels service in your partnership.

Steps

  1. Call list_locations and pick the location key of the BGP43 site closest to the client.
  2. Call create_tunnel with type (gre, gre6, sit, vxlan, vxlan6, wireguard or wireguard6), remote_endpoint (the client router's public address; optional for WireGuard), location and asn_id. With create_bgp: true it also creates the IPv4 and IPv6 transit sessions (procedure 4) in one go.
  3. The tunnel starts as creating. Poll get_tunnel until status is ready; failed means the deploy did not succeed and the tunnel can be deleted and created again.
  4. get_tunnel returns ready-to-paste configuration for the client's router, the tunnel addresses and, for WireGuard, the keys. Configure the client side with them.

Good to know

  • update_tunnel changes the name, the remote endpoint, the WireGuard key, the port or the MTU.
  • nat64 in wireguard_connection lets a wireguard6 tunnel reach a client endpoint that only has IPv4.
  • The client's tunnel limit is set from your partnership when the client is created.
Requests
curl -sS "$BGP43_API/locations" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

curl -sS -X POST $BGP43_API/tunnels \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"type": "gre", "remote_endpoint": "198.51.100.10", "location": "LOCATION_KEY", "asn_id": 77}'
# the answer carries "id": 501; wait for "status": "ready"
curl -sS "$BGP43_API/tunnels/501" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

4. Transit (downstream) BGP session

With transit, BGP43 sends the client the routes of the chosen export policy and carries the client's prefixes to its upstreams.

Needs

  • BGP downstream (transit) in your partnership.
  • An approved ASN (procedure 2): add the ASN, verify it, wait for approval.
  • A ready tunnel of that ASN (procedure 3), or an exchange where PeeringDB lists the client's ASN (list_ixps shows member: true).

Steps

  1. Call create_bgp_session with kind transit, transport tunnel and tunnel_id, and family v4. Repeat with family v6 for IPv6: one session carries one family. If the tunnel was created with create_bgp: true, both sessions exist already.
  2. Choose export_policy: full (the whole table, the default), default (a default route only), cone (BGP43's cone only) or none.
  3. BGP43 checks ASPA: if the client's ASN publishes an ASPA that does not list BGP43's ASN as a provider, the session is refused. Add BGP43's ASN to the client's ASPA (procedure 7 can do it) and try again; you are mailed when the ASPA has become valid.
  4. Configure the session on the client's router with the addresses from get_tunnel and BGP43's ASN.
  5. Check the routes with list_bgp_routes (status=accepted or rejected); refresh_bgp_routes asks for them to be read again.

Good to know

  • Without an AS-SET the import filter accepts the prefixes registered for the client's ASN alone.
  • If BGP43 has switched on Own IRR AS-SET (bgp_as_set) for your partnership, you may set irr_as_set on the client's transit sessions, at creation or later with update_bgp_session. BGP43 expands it and refuses it when it leads through transit-free networks; recheck_bgp_as_set runs the check again and restores a session it disabled. Without the feature, open a support ticket as the client to request an AS-SET.
  • Over an exchange use transport ixp and ixp_id instead of the tunnel; the client's address on the exchange comes from PeeringDB.
  • Transit traffic counts towards the client's monthly traffic limit.
Requests
curl -sS -X POST $BGP43_API/bgp-sessions \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"kind": "transit", "transport": "tunnel", "tunnel_id": 501, "family": "v4", "export_policy": "full"}'
curl -sS -X POST $BGP43_API/bgp-sessions \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"kind": "transit", "transport": "tunnel", "tunnel_id": 501, "family": "v6"}'

# only with Own IRR AS-SET in the partnership
curl -sS -X PATCH $BGP43_API/bgp-sessions/900 \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"irr_as_set": "AS64500:AS-CUSTOMERS"}'

curl -sS "$BGP43_API/bgp-sessions/900/routes?status=rejected" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

5. Peering BGP session

With peering, the client and BGP43 exchange only their own routes and those of their customers (cone), free of settlement, at an exchange or over a tunnel.

Needs

  • Peering and IXP sessions in your partnership.
  • An approved ASN (procedure 2).
  • Over a tunnel: a ready tunnel of that ASN (procedure 3), created without create_bgp. At an exchange: PeeringDB must list the client's ASN at that exchange.

Steps

  1. Over a tunnel: call create_bgp_session with kind peer, transport tunnel, tunnel_id and family.
  2. At an exchange: call list_ixps and pick an exchange with member: true, then create_bgp_session with kind peer, transport ixp, ixp_id and family. The client's address on the exchange LAN is taken from PeeringDB.
  3. Configure the session on the client's router and check the routes with list_bgp_routes.

Good to know

  • The AS-SET of every peering session on BGP43 is set automatically from the AS-SET the client publishes in its PeeringDB record (Auto from PeeringDB). It cannot be set or changed through the API, MCP or the dashboard, whatever your partnership includes; a request with irr_as_set on a peering session is refused. To change it, update PeeringDB: BGP43 picks it up on its regular refresh, and refresh_bgp_prefix_limits reads the AS-SET and the prefix limits again at once.
  • Without an AS-SET in PeeringDB the filter accepts the prefixes of the client's ASN alone.
  • Prefix limits of peering sessions come from PeeringDB too.
  • BGP43 exports only its cone to peers; peering traffic is shown but does not count towards the traffic limit.
Requests
curl -sS -X POST $BGP43_API/bgp-sessions \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"kind": "peer", "transport": "tunnel", "tunnel_id": 502, "family": "v6"}'

# at an exchange
curl -sS "$BGP43_API/ixps" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"
curl -sS -X POST $BGP43_API/bgp-sessions \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"kind": "peer", "transport": "ixp", "ixp_id": 3, "family": "v4"}'

# after updating the AS-SET in PeeringDB
curl -sS -X POST $BGP43_API/bgp-sessions/901/refresh-prefix-limits \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

6. BYOIP: announce the client's prefix from BGP43

BYOIP announces a prefix of the client with BGP43's ASN as origin and routes it to one of the client's tunnels. For a client that announces with its own ASN, use transit (procedure 4) instead.

Needs

  • The BYOIP service in your partnership.
  • A ROA that authorizes BGP43's ASN for the prefix (procedure 7 can create it) and an exact IRR route or route6 object with BGP43's ASN as origin.

Steps

  1. Call create_byoip with prefix (IPv4 /24 or shorter, IPv6 /48 or shorter), usage_type, a short usage_detail and terms_accepted: true. One request per prefix.
  2. BGP43 checks RPKI and IRR; then an operator reviews the request. Poll get_byoip until it is approved.
  3. Route it statically: create a tunnel with byoip_id and routing_mode static (procedure 3), or call attach_byoip with a ready tunnel and routing_mode static.

Good to know

  • Clients of a partner route BYOIP statically only; BYOIP BGP sessions are not available to them.
  • detach_byoip takes the prefix off its tunnel; delete_byoip withdraws it.
Requests
curl -sS -X POST $BGP43_API/byoip \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"prefix": "203.0.113.0/24", "usage_type": "hosting", "usage_detail": "web servers", "terms_accepted": true}'
# the answer carries "id": 40; wait for "status": "approved"
curl -sS -X POST $BGP43_API/byoip/40/attach \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"tunnel_id": 501, "routing_mode": "static"}'

7. RPKI: Use Hosted RPKI

First choose how the client does RPKI. Use Hosted RPKI: BGP43 runs the client's certificate authority and the client manages ROAs and ASPAs here (this procedure). Use BGP43 as publication server: the client runs its own CA and BGP43 only hosts its repository (procedure 8). Hosted RPKI does not depend on an ASN, tunnel or session: the resources come from the client's RIR or LIR.

Needs

  • The RPKI service in your partnership.
  • Access to the client's RIR or LIR portal (for RIPE: the LIR Portal, RPKI with a non-hosted, delegated CA).

Steps

  1. Call create_rpki_ca to reserve the client's CA handle.
  2. Call provision_rpki_ca to create the CA.
  3. Call get_rpki_child_request and upload the Child Request XML to the RIR or LIR portal. The portal answers with a Parent Response XML.
  4. Call add_rpki_parent with the Parent Response as parent_response. BGP43 sets up the CA's repository on its own. get_rpki with view=overview shows the parent status and the delegated resources.
  5. Create ROAs with add_rpki_roa (prefix, asn, optional max_length) inside the delegated resources, or protect_rpki_all to cover every announcement the CA sees uncovered. update_rpki_roa and delete_rpki_roa change them.
  6. Publish the client's ASPA with add_rpki_aspa: customer is the client's ASN, providers every upstream, including BGP43's ASN when the client takes transit from BGP43.

Good to know

  • A CA without a connected parent is removed after 14 days.
  • Limits: at most 8 parents, 500 ROAs and 100 ASPAs per client.
  • set_rpki_note keeps comments on ROAs, ASPAs, parents and the repository for you only.
  • If BGP43 has switched on RPKI child CAs (rpki_children), the client's CA can delegate resources to child CAs: add_rpki_child with the child's Child Request, then give the child the XML from get_rpki_child_parent_response.
Requests
curl -sS -X POST $BGP43_API/rpki/ca \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"
curl -sS -X POST $BGP43_API/rpki/ca/provision \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"
curl -sS "$BGP43_API/rpki/ca/child-request" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

# upload the Child Request to the RIR, save its answer as parent-response.xml
jq -n --rawfile x parent-response.xml '{parent_response: $x}' | \
curl -sS -X POST $BGP43_API/rpki/parents \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" -d @-

curl -sS -X POST $BGP43_API/rpki/roas \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"prefix": "203.0.113.0/24", "asn": "AS64500", "max_length": 24}'
curl -sS -X POST $BGP43_API/rpki/aspas \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"customer": "AS64500", "providers": ["AS64501", "AS64502"]}'

8. RPKI: Use BGP43 as publication server

The client runs its own CA (Krill or another RFC 8183 CA) and publishes its objects in BGP43's repository.

Needs

  • The RPKI service and BGP43 as RPKI publication server (rpki_publishers) in your partnership.
  • The client's own CA.

Steps

  1. Export the RFC 8183 Publisher Request XML from the client's CA (in Krill: krillc repo request).
  2. Call create_rpki_publisher with it as publisher_request. Keep the publisher id.
  3. Call get_rpki_publisher_response with that id and load the Repository Response XML into the client's CA (in Krill: krillc repo configure).
  4. The CA publishes its objects; list_rpki_publishers shows the publisher.

Good to know

  • At most 3 publishers per client. A publisher that has published nothing for 30 days is removed.
  • delete_rpki_publisher with confirm: delete removes the publisher and its published objects.
Requests
jq -n --rawfile x publisher-request.xml '{publisher_request: $x}' | \
curl -sS -X POST $BGP43_API/rpki/publishers \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" -d @-
# the answer carries "id": 12
curl -sS "$BGP43_API/rpki/publishers/12/repository-response" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

9. Free IPv6

A client may apply for one IPv6 block from BGP43. The application and registration run in the dashboard; get_free_ipv6 reads its progress.

Needs

  • The Free IPv6 service in your partnership and a RIPE organisation of the client that carries mnt-ref: BGP43-MNT.

Steps

  1. In the dashboard, Manage resources on the client, open Free IPv6 and apply for a /48, /47 or /46 with the origin (BYOIP through BGP43 or an approved ASN of the client) and a justification.
  2. A BGP43 operator approves or declines; the result is mailed to you.
  3. After approval, register the block once: RIPE organisation, admin-c and tech-c, netname, origin and optional reverse DNS. BGP43 creates the RIPE objects and the ROA.
  4. Follow the progress with get_free_ipv6.

Good to know

  • A block that is not routed for 7 days is released; you are mailed two days before.
Requests
curl -sS "$BGP43_API/free-ipv6" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"

10. Traffic and support

Read a client's traffic and open tickets on its behalf.

Needs

  • The Traffic and Support services in your partnership.

Steps

  1. get_traffic shows the client's usage against its monthly limit; get_traffic_series and get_tunnel_traffic return graphs for a range (1h to month).
  2. create_ticket opens a ticket as the client, for example to request an AS-SET. Replies are mailed to you and name the client; reply_ticket answers and resolve_ticket closes it.
Requests
curl -sS "$BGP43_API/traffic/series?range=24h" \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT"
curl -sS -X POST $BGP43_API/support/tickets \
  -H "Authorization: Bearer $BGP43_TOKEN" -H "BGP43-Client: $CLIENT" \
  -H "Content-Type: application/json" \
  -d '{"subject": "AS-SET for AS64500", "body": "Please set AS64500:AS-CUSTOMERS on session 900.", "category": "bgp"}'

In the dashboard

The Partner tab of the dashboard lists your clients and creates, edits and deletes them. Manage resources switches the whole dashboard to one client: ASNs, tunnels, BGP, RPKI and the other included services then work on that client's account, with the same checks, until you choose Back to partner in the banner at the top.

Included services

BGP43 chooses which services a partnership includes. With a client named, an operation of a service that is not included answers 403 service_not_allowed, and MCP offers client_id only on tools of included services. get_partner lists the included services. Your own account is not restricted by this.

ServiceOperations for a client
Always availableget_account, list_communities, list_ixps, list_locations, list_routers
Hosted RPKIget_rpki, delete_rpki_aspa, add_rpki_aspa, delete_rpki_ca, create_rpki_ca, get_rpki_child_request, provision_rpki_ca, refresh_rpki_ca, delete_rpki_child, update_rpki_child, add_rpki_child, get_rpki_child_parent_response, set_rpki_note, delete_rpki_parent, add_rpki_parent, list_rpki_publishers, create_rpki_publisher, delete_rpki_publisher, get_rpki_publisher_response, delete_rpki_roa, update_rpki_roa, add_rpki_roa, protect_rpki_all
ASNslist_asns, create_asn, delete_asn, get_asn, cancel_asn, refresh_asn_contacts, refresh_asn_prefix_limits, verify_asn_email, verify_asn_remarks
Tunnelslist_tunnels, create_tunnel, delete_tunnel, get_tunnel, update_tunnel, move_tunnel
BGP sessionslist_bgp_sessions, create_bgp_session, delete_bgp_session, get_bgp_session, update_bgp_session, recheck_bgp_as_set, refresh_bgp_prefix_limits, refresh_bgp_routes, list_bgp_routes
BYOIPlist_byoip, create_byoip, delete_byoip, get_byoip, attach_byoip, detach_byoip
Free IPv6get_free_ipv6, apply_free_ipv6, cancel_free_ipv6, update_free_ipv6_details, update_free_ipv6_dns, prepare_free_ipv6, change_free_ipv6_origin, register_free_ipv6, release_free_ipv6
Trafficget_traffic, get_traffic_series, get_tunnel_traffic
Support ticketslist_tickets, create_ticket, get_ticket, reply_ticket, resolve_ticket
Looking glassrun_looking_glass

Within its services a partnership also has features, chosen by BGP43 as well. They apply to every client, whether you act through the API, MCP or the dashboard; get_partner lists them. An operation that needs a missing feature is refused with the message that the partnership does not include it. Your own account keeps the ordinary customer rules.

FeatureServiceWhat it allows a client
bgp_downstream BGP downstream (transit)BGP sessionsTransit sessions over a tunnel or an IXP, including the sessions of a tunnel request. ASPA is still checked.
bgp_peering Peering and IXP sessionsBGP sessionsPeer sessions over a tunnel or at an exchange; the client receives the BGP43 cone. The AS-SET always comes from the peer's PeeringDB record.
bgp_as_set Own IRR AS-SETBGP sessionsClients set the IRR AS-SET of their transit (downstream) sessions themselves instead of asking support; peering sessions always use PeeringDB. The AS-SET widens the import filter of the client's ASN; RPKI, ASPA and bogon checks still apply.
rpki_publishers BGP43 as RPKI publication serverHosted RPKIClients who run their own RPKI CA publish it in the BGP43 Krill repository; BGP43 is the publication server (account limits apply).
rpki_children RPKI child CAsHosted RPKIThe hosted CA of a client may act as a parent and delegate its resources to child CAs, as Child CA access in the RPKI console does for one account.

MCP

With a partner token, the MCP tools of included services take an optional client_id argument. Without it, a tool works on your own account.

JSON-RPC
{"jsonrpc": "2.0", "id": 1, "method": "tools/call",
 "params": {"name": "list_tunnels", "arguments": {"client_id": 1234}}}

Partner errors

StatusCodeMeaning
400invalid_paramsclient_id and BGP43-Client disagree, or a client was named on a partner operation.
403not_partnerThe account is not a partner.
403partner_suspendedThe partnership is suspended: no new clients and no acting for clients.
403service_not_allowedThe partnership does not include this service for clients.
403account_blockedThe named client is blocked.
404client_not_foundNo client with this ID belongs to the partner.

Limits and notices

  • The hourly request budget is shared by all your tokens, whichever client they act for.
  • Each client has its own tunnel and traffic limits, set from your partnership when it is created; BGP43 support can change them.
  • Notices about a client (ASN verification, sessions, tunnels, RPKI) are mailed to you and name the client.

MCP server

The MCP endpoint speaks the Streamable HTTP transport (protocol 2025-11-25, older revisions are negotiated). Every REST operation is an MCP tool with the same name and parameters. The server is stateless: it needs no session ID and opens no server-sent event stream.

  • Authenticate with the same bearer token. A read-only token lists and runs only the read-only tools.
  • Tools carry readOnlyHint and destructiveHint annotations, so clients can ask before deleting anything.
  • Results come as structuredContent and as JSON text; refusals come back as tool errors with the same message as the REST API.

Claude Code

Shell
claude mcp add --transport http bgp43 https://bgp43.net/api/mcp \
  --header "Authorization: Bearer $BGP43_TOKEN"

Clients with remote HTTP servers

Most MCP clients accept a remote server with a URL and headers. Keep the token in an environment variable rather than in the file.

JSON
{
  "mcpServers": {
    "bgp43": {
      "type": "http",
      "url": "https://bgp43.net/api/mcp",
      "headers": {"Authorization": "Bearer ${BGP43_TOKEN}"}
    }
  }
}

Clients with only local (stdio) servers

Clients that start MCP servers as local processes can reach the endpoint through the mcp-remote bridge.

JSON
{
  "mcpServers": {
    "bgp43": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://bgp43.net/api/mcp", "--header", "Authorization:Bearer ${BGP43_TOKEN}"],
      "env": {"BGP43_TOKEN": "bgp43_…"}
    }
  }
}

Raw JSON-RPC

Shell
curl -sS https://bgp43.net/api/mcp \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "list_tunnels", "arguments": {}}}'

Account

The account the token belongs to, its limits and monthly traffic.

GET /api/v1/account read

Get the account #

Your account: email, verification, limits, this month's transit traffic against the monthly limit, object counts and the token in use.

MCP tool: get_account

Example request
curl
curl -sS 'https://bgp43.net/api/v1/account' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Partner

Partner accounts only: create and manage client accounts. Every other endpoint acts on a client with the BGP43-Client header or client_id.

GET /api/v1/partner read

Get the partnership #

The partnership of this account: status, limits and the number of clients.

MCP tool: get_partner

Example request
curl
curl -sS 'https://bgp43.net/api/v1/partner' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/partner/clients read

List clients #

Every client account of the partnership, newest first.

MCP tool: list_partner_clients

ParameterTypeInDescription
reference string≤ 64 query Only the client with this reference.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/partner/clients' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/partner/clients write

Create a client #

Create a client account owned by the partnership. Use the returned id as BGP43-Client or client_id.

MCP tool: create_partner_client

ParameterTypeInDescription
name required string≤ 120 body The client's name, shown to you and to BGP43 staff.
reference string≤ 64 body Your own unique reference for the client.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/partner/clients' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "name"}'
DELETE /api/v1/partner/clients/{id} writedestructive

Delete a client #

Delete the client account with every tunnel, BGP session, ASN, BYOIP prefix, hosted RPKI CA and Free IPv6 block it owns. Routing through them stops.

MCP tool: delete_partner_client

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
confirm required boolean body Must be true.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/partner/clients/1' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'
GET /api/v1/partner/clients/{id} read

Get a client #

One client with its limits, monthly traffic and a summary of its resources.

MCP tool: get_partner_client

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/partner/clients/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
PATCH /api/v1/partner/clients/{id} write

Update a client #

Rename a client or change its reference.

MCP tool: update_partner_client

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
name string≤ 120 body The client's new name.
reference string≤ 64 body The new reference; an empty string clears it.
Example request
curl
curl -sS -X PATCH 'https://bgp43.net/api/v1/partner/clients/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Catalog

Locations, routers, exchanges and BGP communities you can use. The same for every account.

GET /api/v1/communities read

List BGP communities #

Communities you can attach to your announcements to steer them (user) and the informational communities BGP43 sets on routes (system).

MCP tool: list_communities

Example request
curl
curl -sS 'https://bgp43.net/api/v1/communities' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/ixps read

List exchanges #

Internet exchanges BGP43 is present at. member tells whether one of your approved ASNs is at the same exchange according to PeeringDB, which an IXP peering session requires.

MCP tool: list_ixps

Example request
curl
curl -sS 'https://bgp43.net/api/v1/ixps' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/locations read

List locations #

Locations where you can create tunnels, with the address families and routers available there.

MCP tool: list_locations

Example request
curl
curl -sS 'https://bgp43.net/api/v1/locations' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/routers read

List routers #

Every enabled BGP43 router with its ASN, public addresses and supported families.

MCP tool: list_routers

Example request
curl
curl -sS 'https://bgp43.net/api/v1/routers' \
  -H "Authorization: Bearer $BGP43_TOKEN"

ASNs

Register an ASN and prove you control it, by mail to its registry contacts or with a remarks line in its aut-num object.

GET /api/v1/asns read

List ASNs #

Your ASN requests in every state: awaiting_email, pending_review, approved, rejected or cancelled.

MCP tool: list_asns

Example request
curl
curl -sS 'https://bgp43.net/api/v1/asns' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/asns write

Register an ASN #

Start the ownership check for an ASN. BGP43 reads its registry contacts; then prove control with verify_asn_email or verify_asn_remarks. An ASN registered to another account needs transfer: true and the same proof.

MCP tool: create_asn

ParameterTypeInDescription
asn required string≤ 16 body The AS number, such as AS64500 or 64500.
transfer boolean body Move the ASN from another account to this one after the ownership proof.Default: False
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/asns' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"asn": "asn"}'
DELETE /api/v1/asns/{id} writedestructive

Delete an ASN #

Remove the ASN from the account, together with its tunnels and BGP sessions. Their router configuration is removed.

MCP tool: delete_asn

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/asns/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/asns/{id} read

Get an ASN #

One ASN request. While it awaits verification it includes the verification code, the remarks line and the registry contacts that may answer the verification mail.

MCP tool: get_asn

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/asns/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/asns/{id}/cancel writedestructive

Cancel an ASN request #

Withdraw an ASN request that is still being verified or reviewed.

MCP tool: cancel_asn

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/asns/1/cancel' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/asns/{id}/refresh-contacts write

Refresh registry contacts #

Read the ASN's contact addresses from its registry again, for example after you updated them.

MCP tool: refresh_asn_contacts

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/asns/1/refresh-contacts' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/asns/{id}/refresh-prefix-limits write

Refresh prefix limits #

Read the ASN's maximum-prefix values from PeeringDB again and redeploy its transit sessions that rely on them.

MCP tool: refresh_asn_prefix_limits

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/asns/1/refresh-prefix-limits' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/asns/{id}/verify/email write

Check the verification mail #

Look for a reply from a registry contact that contains the verification code. Send the mail first; matched tells whether it arrived.

MCP tool: verify_asn_email

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/asns/1/verify/email' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/asns/{id}/verify/remarks write

Check the aut-num remarks #

Look up the ASN's aut-num object in its registry for the remarks line from get_asn. Add the line first; you can remove it after approval.

MCP tool: verify_asn_remarks

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/asns/1/verify/remarks' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Tunnels

GRE, SIT, VXLAN and WireGuard tunnels to a BGP43 router. A ready tunnel carries BGP sessions or static BYOIP routing.

GET /api/v1/tunnels read

List tunnels #

Your tunnels with their router, addresses, status and traffic counters.

MCP tool: list_tunnels

ParameterTypeInDescription
status string query Only objects with this status.One of: creating, ready, failed, disabled
Example request
curl
curl -sS 'https://bgp43.net/api/v1/tunnels' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/tunnels write

Create a tunnel #

Create a tunnel to a BGP43 router. It starts in status creating; poll get_tunnel until it is ready. With create_bgp: true transit sessions for both families are created with it. A BYOIP tunnel (byoip_id) routes an approved prefix instead.

MCP tool: create_tunnel

ParameterTypeInDescription
type required string body Tunnel type. The suffix 6 runs the tunnel over IPv6; sit carries IPv6 over IPv4.One of: gre, gre6, sit, vxlan, vxlan6, wireguard, wireguard6
remote_endpoint string≤ 140 body Your public tunnel endpoint address. Its family must match the tunnel type. Optional for WireGuard, whose peer may connect from anywhere.
location required string≤ 120 body A location key from list_locations, such as nl|amsterdam; BGP43 picks a router there.
name string≤ 64 body Tunnel name, up to 64 characters. Generated when omitted.
asn_id integer≥ 1 body The ASN the tunnel belongs to. Optional when the account has exactly one approved ASN.
byoip_id integer≥ 1 body Create the tunnel for an approved BYOIP prefix instead of an ASN.
routing_mode string body For a BYOIP tunnel: static or bgp.One of: static, bgp
create_bgp boolean body Also create downstream IPv4 and IPv6 BGP sessions over the tunnel.Default: False
wireguard_public_key string≤ 64 body Your WireGuard public key (base64). Omit it to let BGP43 generate a key pair; the private key is then returned by get_tunnel.
wireguard_connection string body nat64 lets a wireguard6 tunnel reach an IPv4-only endpoint through NAT64.One of: direct, nat64Default: direct
remote_port integer1..65535 body UDP port of your endpoint (WireGuard, VXLAN).
vxlan_id integer1..16777215 body VXLAN network identifier. Allocated when omitted.
mtu integer1280..9000 body Tunnel MTU.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/tunnels' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "gre", "location": "location"}'
DELETE /api/v1/tunnels/{id} writedestructive

Delete a tunnel #

Delete a tunnel and every BGP session over it. Traffic stops when the router configuration is removed.

MCP tool: delete_tunnel

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/tunnels/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/tunnels/{id} read

Get a tunnel #

One tunnel with ready-to-paste configuration examples for your side, the WireGuard keys and the IDs of its BGP sessions.

MCP tool: get_tunnel

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/tunnels/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
PATCH /api/v1/tunnels/{id} write

Update a tunnel #

Change the name, your endpoint, WireGuard key, port or MTU. The router configuration is redeployed.

MCP tool: update_tunnel

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
name string≤ 64 body A display name. Generated when omitted.
remote_endpoint string≤ 140 body Your public tunnel endpoint address. Its family must match the tunnel type. Optional for WireGuard, whose peer may connect from anywhere.
wireguard_public_key string≤ 64 body Your WireGuard public key (base64). Omit it to let BGP43 generate a key pair; the private key is then returned by get_tunnel.
remote_port integer1..65535 body UDP port of your endpoint (WireGuard, VXLAN).
mtu integer1280..9000 body Tunnel MTU.
Example request
curl
curl -sS -X PATCH 'https://bgp43.net/api/v1/tunnels/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/tunnels/{id}/move write

Move a tunnel #

Move a tunnel and its sessions to another location or router. Its addresses on the BGP43 side change; update your configuration from get_tunnel.

MCP tool: move_tunnel

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
location string≤ 120 body A location key from list_locations, such as nl|amsterdam; BGP43 picks a router there.
router_id integer≥ 1 body ID of a router from list_routers. Use either router_id or location.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/tunnels/1/move' \
  -H "Authorization: Bearer $BGP43_TOKEN"

BGP sessions

Transit, peering and BYOIP sessions over a tunnel or an exchange, with their received routes and filters.

GET /api/v1/bgp-sessions read

List BGP sessions #

Your BGP sessions with addresses, export policy, prefix limits and the latest BIRD state and route counts.

MCP tool: list_bgp_sessions

ParameterTypeInDescription
type string query Only sessions of this type: downstream (transit), byoip, peer or ixp.One of: downstream, byoip, peer, ixp, upstream, ibgp
tunnel_id integer≥ 1 query Only sessions over this tunnel.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/bgp-sessions' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/bgp-sessions write

Create a BGP session #

Create a session over a ready tunnel or at an exchange. transit gets the export_policy you choose; peer exchanges cone routes; byoip announces approved BYOIP prefixes over a BYOIP tunnel in bgp mode and creates a session per family.

MCP tool: create_bgp_session

ParameterTypeInDescription
kind required string body transit (a downstream session that receives transit), peer (settlement-free peering) or byoip.One of: transit, peer, byoip
transport string body tunnel uses tunnel_id; ixp peers over an exchange LAN given by ixp_id.One of: tunnel, ixpDefault: tunnel
tunnel_id integer≥ 1 body ID of one of your tunnels.
ixp_id integer≥ 1 body Exchange from list_ixps, for transport ixp.
asn_id integer≥ 1 body ID of one of your approved ASNs from list_asns (not the AS number).
family string body v4 or v6. Required when the tunnel carries both families.One of: v4, v6
prefixes array[string] body For kind byoip: the approved prefixes to announce.
name string≤ 100 body A display name. Generated when omitted.
bfd boolean body Enable BFD on the session.Default: False
export_policy string body Routes BGP43 exports to you. Defaults to full for transit and cone for peering.One of: full, default, cone, none
irr_as_set string≤ 120 body IRR AS-SET of a transit session, only where the account may set it (Own IRR AS-SET for a partner's client). Peering sessions always use the peer's PeeringDB AS-SET.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/bgp-sessions' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"kind": "transit"}'
DELETE /api/v1/bgp-sessions/{id} writedestructive

Delete a BGP session #

Shut down and remove a BGP session.

MCP tool: delete_bgp_session

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/bgp-sessions/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/bgp-sessions/{id} read

Get a BGP session #

One BGP session, including its AS-SET check, BFD profile and BYOIP prefixes.

MCP tool: get_bgp_session

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/bgp-sessions/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
PATCH /api/v1/bgp-sessions/{id} write

Update a BGP session #

Change the name, BFD or export policy (and the AS-SET of a downstream session, where the partnership allows it). The router configuration is redeployed.

MCP tool: update_bgp_session

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
name string≤ 100 body A display name. Generated when omitted.
bfd boolean body Enable BFD on the session.
export_policy string body What BGP43 sends you: full table, default route only, the BGP43 cone, or nothing.One of: full, default, cone, none
irr_as_set string≤ 120 body IRR AS-SET of a transit session, only where the account may set it (Own IRR AS-SET for a partner's client). Peering sessions always use the peer's PeeringDB AS-SET.
Example request
curl
curl -sS -X PATCH 'https://bgp43.net/api/v1/bgp-sessions/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/bgp-sessions/{id}/recheck-as-set write

Recheck the AS-SET #

Expand the session's AS-SET again and check it for loops through transit-free networks. A session disabled by the check is restored when it passes.

MCP tool: recheck_bgp_as_set

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/bgp-sessions/1/recheck-as-set' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/bgp-sessions/{id}/refresh-prefix-limits write

Refresh session prefix limits #

Read the session's maximum-prefix limits from PeeringDB again.

MCP tool: refresh_bgp_prefix_limits

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/bgp-sessions/1/refresh-prefix-limits' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/bgp-sessions/{id}/refresh-routes write

Refresh received routes #

Ask for the received routes of the session's router to be read again soon.

MCP tool: refresh_bgp_routes

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/bgp-sessions/1/refresh-routes' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/bgp-sessions/{id}/routes read

List received routes #

Routes BGP43 received from you on a session, accepted or rejected by the import filter with the reason, AS path and communities. The list is refreshed periodically; refresh_bgp_routes asks for an update.

MCP tool: list_bgp_routes

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
status string query Only accepted or only rejected routes.One of: accepted, rejected
prefix string≤ 64 query Only prefixes that start with this text, such as 2001:db8.
limit integer1..5000 query Maximum number of items to return.Default: 500
offset integer≥ 0 query Number of items to skip.Default: 0
Example request
curl
curl -sS 'https://bgp43.net/api/v1/bgp-sessions/1/routes' \
  -H "Authorization: Bearer $BGP43_TOKEN"

BYOIP

Bring your own IP space: request a prefix, pass the RPKI and IRR checks and route it to a tunnel.

GET /api/v1/byoip read

List BYOIP prefixes #

Your BYOIP requests with their review state, RPKI and IRR results and the tunnel they are routed to.

MCP tool: list_byoip

Example request
curl
curl -sS 'https://bgp43.net/api/v1/byoip' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/byoip write

Request BYOIP #

Ask to announce one of your own prefixes through BGP43; submit one request per prefix. The prefix needs a ROA that makes the BGP43 origin RPKI-valid and an exact IRR route object for that origin; an operator then reviews the request.

MCP tool: create_byoip

ParameterTypeInDescription
prefix required string≤ 64 body The prefix to announce: IPv4 /24 or shorter (/23, /22, ...), IPv6 /48 or shorter (/47, /46, ...).
usage_type required string body What the space is used for.One of: anycast, hosting, infrastructure, lab, other, personal, vpn
usage_detail string≤ 2000 body A few words on the network behind the prefix.
terms_accepted required boolean body Confirms that you are authorised to use the resource and accept the terms of service. Must be true.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/byoip' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prefix": "prefix", "usage_type": "anycast", "terms_accepted": true}'
DELETE /api/v1/byoip/{id} writedestructive

Delete a BYOIP request #

Remove the request. An announced prefix is withdrawn first.

MCP tool: delete_byoip

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/byoip/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/byoip/{id} read

Get a BYOIP prefix #

One BYOIP request.

MCP tool: get_byoip

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/byoip/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/byoip/{id}/attach write

Route BYOIP to a tunnel #

Route an approved prefix to one of your ready tunnels, statically or over a BYOIP BGP session.

MCP tool: attach_byoip

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
tunnel_id required integer≥ 1 body ID of one of your tunnels.
routing_mode required string body static routes the prefix to the tunnel; bgp expects you to announce it over a BYOIP BGP session.One of: static, bgp
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/byoip/1/attach' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tunnel_id": 1, "routing_mode": "static"}'
POST /api/v1/byoip/{id}/detach writedestructive

Detach BYOIP from its tunnel #

Stop routing the prefix to its tunnel. The announcement is withdrawn.

MCP tool: detach_byoip

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/byoip/1/detach' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Traffic

Rates, daily and monthly volumes and time series of your tunnels and links.

GET /api/v1/traffic read

Get traffic overview #

Current rate and daily and monthly volume per tunnel and per directly connected link, and the month's total against the monthly transit limit.

MCP tool: get_traffic

Example request
curl
curl -sS 'https://bgp43.net/api/v1/traffic' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/traffic/series read

Get a traffic time series #

Inbound and outbound rates over a time range, for the whole account or one tunnel.

MCP tool: get_traffic_series

ParameterTypeInDescription
range string query Time range.One of: 1h, 6h, 24h, 7d, 30d, monthDefault: 24h
tunnel_id integer≥ 1 query Only this tunnel. Omit for the whole account.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/traffic/series' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/tunnels/{id}/traffic read

Get tunnel traffic #

Traffic graph and totals of one tunnel over a time range.

MCP tool: get_tunnel_traffic

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
range string query Time range of the graph.One of: 1h, 6h, 24h, 7d, 30d, monthDefault: 24h
Example request
curl
curl -sS 'https://bgp43.net/api/v1/tunnels/1/traffic' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Support

Open tickets, read the conversation and reply.

GET /api/v1/support/tickets read

List support tickets #

Your support tickets, newest activity first.

MCP tool: list_tickets

ParameterTypeInDescription
view string query open (default) or closed tickets.One of: open, closed
Example request
curl
curl -sS 'https://bgp43.net/api/v1/support/tickets' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/support/tickets write

Open a ticket #

Open a support ticket. Replies arrive by mail and in get_ticket.

MCP tool: create_ticket

ParameterTypeInDescription
subject required string≤ 200 body A short subject.
body required string≤ 20000 body Text of the message.
category string body The topic of the request.One of: general, request, bgp, tunnel, asn, byoip, peering, sponsorship, account, abuseDefault: general
priority string body high only for outages that affect your traffic.One of: normal, highDefault: normal
related string≤ 200 body An object the ticket is about, such as a tunnel name, a prefix or an ASN.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/support/tickets' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"subject": "subject", "body": "body"}'
GET /api/v1/support/tickets/{id} read

Read a ticket #

One ticket with its whole conversation. Reading it marks it as seen.

MCP tool: get_ticket

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/support/tickets/1' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/support/tickets/{id}/reply write

Reply to a ticket #

Add a message to a ticket. A resolved ticket is reopened.

MCP tool: reply_ticket

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
body required string≤ 20000 body Text of the message.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/support/tickets/1/reply' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"body": "body"}'
POST /api/v1/support/tickets/{id}/resolve write

Resolve a ticket #

Mark a ticket as resolved when you need no more help.

MCP tool: resolve_ticket

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/support/tickets/1/resolve' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Hosted RPKI

A free hosted Krill CA: connect it to your RIR or LIR, publish ROAs and ASPAs, delegate to child CAs, or publish your own CA in the BGP43 repository.

GET /api/v1/rpki read

Get the hosted RPKI state #

Your hosted CA as Krill reports it: setup step, parents, delegated resources, repository, ROAs, ASPAs, children, coverage of your announcements and limits, plus your own CAs that publish in the BGP43 repository.

MCP tool: get_rpki

ParameterTypeInDescription
view string query Which part of the CA to include.One of: overview, roas, aspas, objects, registry, children, repository, publishDefault: overview
kind string query For view objects: only published objects of this kind.One of: roa, asa, mft, crl, cer
Example request
curl
curl -sS 'https://bgp43.net/api/v1/rpki' \
  -H "Authorization: Bearer $BGP43_TOKEN"
DELETE /api/v1/rpki/aspas writedestructive

Delete an ASPA #

Remove the ASPA of a customer ASN.

MCP tool: delete_rpki_aspa

ParameterTypeInDescription
customer required string≤ 16 body The customer ASN of the ASPA.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/rpki/aspas' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"customer": "customer"}'
POST /api/v1/rpki/aspas write

Set an ASPA #

Publish or replace the ASPA of a customer ASN with its full list of upstream providers.

MCP tool: add_rpki_aspa

ParameterTypeInDescription
customer required string≤ 16 body Your ASN the ASPA is for.
providers required array[string] body Every provider ASN of the customer ASN, such as AS64500.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/aspas' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"customer": "customer", "providers": ["item"]}'
DELETE /api/v1/rpki/ca writedestructive

Delete the hosted CA #

Delete the CA in Krill with every ROA, ASPA and child. Routes it protected may become RPKI-unknown or invalid.

MCP tool: delete_rpki_ca

ParameterTypeInDescription
confirm required string body The literal string delete, to confirm the removal.One of: delete
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/rpki/ca' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"confirm": "delete"}'
POST /api/v1/rpki/ca write

Reserve a hosted CA #

Reserve the account's hosted CA handle. Nothing is created in Krill until provision_rpki_ca.

MCP tool: create_rpki_ca

Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/ca' \
  -H "Authorization: Bearer $BGP43_TOKEN"
GET /api/v1/rpki/ca/child-request read

Get the Child Request #

The RFC 8183 Child Request XML to upload to your RIR or LIR portal, which answers with a Parent Response for add_rpki_parent.

MCP tool: get_rpki_child_request

Example request
curl
curl -sS 'https://bgp43.net/api/v1/rpki/ca/child-request' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/rpki/ca/provision write

Provision the CA #

Create the CA in Krill so that get_rpki_child_request can return its Child Request.

MCP tool: provision_rpki_ca

Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/ca/provision' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/rpki/ca/refresh write

Sync with parents #

Ask Krill to sync the CA with its parents and repository now.

MCP tool: refresh_rpki_ca

Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/ca/refresh' \
  -H "Authorization: Bearer $BGP43_TOKEN"
DELETE /api/v1/rpki/children writedestructive

Remove a child CA #

Remove a child and revoke the certificates issued to it.

MCP tool: delete_rpki_child

ParameterTypeInDescription
handle required string≤ 160 body The handle of the parent or child CA, as shown by get_rpki.
confirm required string body The literal string delete, to confirm the removal.One of: delete
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/rpki/children' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"handle": "handle", "confirm": "delete"}'
PATCH /api/v1/rpki/children write

Change a child's resources #

Replace the resources delegated to a child.

MCP tool: update_rpki_child

ParameterTypeInDescription
handle required string≤ 160 body The handle of the parent or child CA, as shown by get_rpki.
asn string≤ 2000 body ASNs to delegate, separated by commas or spaces.
ipv4 string≤ 4000 body IPv4 prefixes to delegate, separated by commas or spaces.
ipv6 string≤ 4000 body IPv6 prefixes to delegate, separated by commas or spaces.
Example request
curl
curl -sS -X PATCH 'https://bgp43.net/api/v1/rpki/children' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"handle": "handle"}'
POST /api/v1/rpki/children write

Add a child CA #

Delegate part of your resources to another CA from its Child Request. Needs Child CA access, which support enables on request.

MCP tool: add_rpki_child

ParameterTypeInDescription
handle required string≤ 160 body A handle for the child.
child_request required string≤ 262144 body The child's Child Request XML, as text.
asn string≤ 2000 body ASNs to delegate, separated by commas or spaces.
ipv4 string≤ 4000 body IPv4 prefixes to delegate, separated by commas or spaces.
ipv6 string≤ 4000 body IPv6 prefixes to delegate, separated by commas or spaces.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/children' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"handle": "handle", "child_request": "child_request"}'
GET /api/v1/rpki/children/parent-response read

Get a child's Parent Response #

The Parent Response XML to give to the child's operator.

MCP tool: get_rpki_child_parent_response

ParameterTypeInDescription
handle required string≤ 160 query The handle of the parent or child CA, as shown by get_rpki.
Example request
curl
curl -sS -G 'https://bgp43.net/api/v1/rpki/children/parent-response?handle=handle' \
  -H "Authorization: Bearer $BGP43_TOKEN"
PUT /api/v1/rpki/notes write

Set a note #

Save a private comment on a ROA, an ASPA, a parent, the repository, or a display name for a parent. Notes stay in BGP43 and never reach Krill.

MCP tool: set_rpki_note

ParameterTypeInDescription
kind required string body What the note belongs to.One of: roa, aspa, parent, parent_name, repository
key string≤ 160 body The object: prefix|asn|max_length of a ROA, the customer ASN of an ASPA or the parent handle. Empty for the repository.
body string≤ 2000 body The note. Empty removes it.
Example request
curl
curl -sS -X PUT 'https://bgp43.net/api/v1/rpki/notes' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"kind": "roa"}'
DELETE /api/v1/rpki/parents writedestructive

Disconnect a parent #

Remove a parent. ROAs and ASPAs that depend on its resources are no longer published.

MCP tool: delete_rpki_parent

ParameterTypeInDescription
handle required string≤ 160 body The handle of the parent or child CA, as shown by get_rpki.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/rpki/parents' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"handle": "handle"}'
POST /api/v1/rpki/parents write

Connect a parent #

Connect the CA to a parent with the Parent Response XML from your RIR or LIR. The resources it delegates become available for ROAs and ASPAs.

MCP tool: add_rpki_parent

ParameterTypeInDescription
parent_response required string≤ 262144 body The Parent Response XML, as text.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/parents' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"parent_response": "parent_response"}'
GET /api/v1/rpki/publishers read

List publishers #

Your own CAs that use BGP43 as their publication server.

MCP tool: list_rpki_publishers

Example request
curl
curl -sS 'https://bgp43.net/api/v1/rpki/publishers' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/rpki/publishers write

Add a publisher #

Host the repository of a CA you run yourself, from its RFC 8183 Publisher Request. Returns the publisher; fetch the Repository Response with get_rpki_publisher_response.

MCP tool: create_rpki_publisher

ParameterTypeInDescription
publisher_request required string≤ 262144 body The Publisher Request XML, as text.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/publishers' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"publisher_request": "publisher_request"}'
DELETE /api/v1/rpki/publishers/{id} writedestructive

Remove a publisher #

Remove a publisher and everything it published.

MCP tool: delete_rpki_publisher

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
confirm required string body The literal string delete, to confirm the removal.One of: delete
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/rpki/publishers/1' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"confirm": "delete"}'
GET /api/v1/rpki/publishers/{id}/repository-response read

Get a Repository Response #

The Repository Response XML to load into your own CA.

MCP tool: get_rpki_publisher_response

ParameterTypeInDescription
id required integer≥ 1 path The object ID, as returned by the list and create operations.
Example request
curl
curl -sS 'https://bgp43.net/api/v1/rpki/publishers/1/repository-response' \
  -H "Authorization: Bearer $BGP43_TOKEN"
DELETE /api/v1/rpki/roas writedestructive

Delete a ROA #

Remove a ROA. Matching announcements may become RPKI-invalid or unknown.

MCP tool: delete_rpki_roa

ParameterTypeInDescription
prefix required string≤ 64 body A prefix in CIDR notation.
asn required string≤ 16 body An AS number such as AS64500 or 64500.
max_length integer0..128 body Maximum prefix length the ROA authorises. Defaults to the prefix length.
Example request
curl
curl -sS -X DELETE 'https://bgp43.net/api/v1/rpki/roas' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prefix": "prefix", "asn": "asn"}'
PATCH /api/v1/rpki/roas write

Change a ROA #

Replace a ROA in one step: the new one is added and the old one removed together.

MCP tool: update_rpki_roa

ParameterTypeInDescription
old_prefix required string≤ 64 body Prefix of the ROA to replace.
old_asn required string≤ 16 body ASN of the ROA to replace.
old_max_length integer0..128 body Max length of the ROA to replace.
prefix required string≤ 64 body A prefix in CIDR notation.
asn required string≤ 16 body An AS number such as AS64500 or 64500.
max_length integer0..128 body Maximum prefix length the ROA authorises. Defaults to the prefix length.
Example request
curl
curl -sS -X PATCH 'https://bgp43.net/api/v1/rpki/roas' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"old_prefix": "old_prefix", "old_asn": "old_asn", "prefix": "prefix", "asn": "asn"}'
POST /api/v1/rpki/roas write

Add a ROA #

Authorise an ASN to originate a prefix from your delegated resources.

MCP tool: add_rpki_roa

ParameterTypeInDescription
prefix required string≤ 64 body A prefix in CIDR notation.
asn required string≤ 16 body An AS number such as AS64500 or 64500.
max_length integer0..128 body Maximum prefix length the ROA authorises. Defaults to the prefix length.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/roas' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prefix": "prefix", "asn": "asn"}'
POST /api/v1/rpki/roas/protect-all write

Protect every announcement #

Create exact ROAs for every announcement from your resources that Krill sees as not covered.

MCP tool: protect_rpki_all

Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/rpki/roas/protect-all' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Free IPv6

Apply for a free /48 to /46, register it in the RIPE database and announce it through BGP43 or from your own ASN.

GET /api/v1/free-ipv6 read

Get Free IPv6 #

Your Free IPv6 application or block with its review, registration and publication progress, the RIPE objects BGP43 maintains for it, the idle-release deadline and the choices available for the next step.

MCP tool: get_free_ipv6

Example request
curl
curl -sS 'https://bgp43.net/api/v1/free-ipv6' \
  -H "Authorization: Bearer $BGP43_TOKEN"
POST /api/v1/free-ipv6 write

Apply for Free IPv6 #

Apply for a free IPv6 block. An operator reviews the application and may approve a smaller size; the decision is mailed. An account holds at most one application or block.

MCP tool: apply_free_ipv6

ParameterTypeInDescription
size required integer body Requested prefix length.One of: 48, 47, 46
mode required string body byoip announces the block from the BGP43 network; asn announces it from one of your own approved ASNs (asn_id).One of: byoip, asn
asn_id integer≥ 1 body For mode asn: the approved ASN that will originate the block.
justification required string≤ 2000 body What you will use the space for.
terms_accepted required boolean body Confirms that you are authorised to use the resource and accept the terms of service. Must be true.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/free-ipv6' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"size": 48, "mode": "byoip", "justification": "justification", "terms_accepted": true}'
POST /api/v1/free-ipv6/cancel writedestructive

Withdraw the application #

Withdraw an application that has not been approved yet.

MCP tool: cancel_free_ipv6

Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/free-ipv6/cancel' \
  -H "Authorization: Bearer $BGP43_TOKEN"
PUT /api/v1/free-ipv6/details write

Update RIPE details #

Change netname, country, description, organisation and contacts of a published block.

MCP tool: update_free_ipv6_details

ParameterTypeInDescription
netname required string≤ 80 body The netname of the inet6num object (letters, digits, - and _).
country required string≤ 2 body ISO 3166 country code of the network, such as DE.
descr string≤ 200 body A description line for the inet6num object.
org required string≤ 40 body Your RIPE organisation (ORG-...). It must carry mnt-ref: BGP43-MNT.
admin_c required string≤ 40 body NIC handle of the administrative contact (a RIPE person or role).
tech_c required string≤ 40 body NIC handle of the technical contact (a RIPE person or role).
Example request
curl
curl -sS -X PUT 'https://bgp43.net/api/v1/free-ipv6/details' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"netname": "netname", "country": "country", "org": "org", "admin_c": "admin_c", "tech_c": "tech_c"}'
PUT /api/v1/free-ipv6/dns write

Update reverse DNS #

Change the nameservers and DNSSEC DS records of the reverse DNS delegation. A /47 or /46 is delegated as its /48 zones, each with its own DS records.

MCP tool: update_free_ipv6_dns

ParameterTypeInDescription
nameservers required array[string] body Nameservers for reverse DNS, at least two to delegate the zone. An empty list removes the delegation.
ds_records array[string] body DNSSEC: DS or DNSKEY records of the reverse zones in zone-file form (zone. IN DS ... or zone. IN DNSKEY ...), one per item; a DNSKEY becomes its SHA-256 DS. A /48 also takes bare RDATA. An empty list removes every DS record; omitted, the stored records stay.
Example request
curl
curl -sS -X PUT 'https://bgp43.net/api/v1/free-ipv6/dns' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"nameservers": ["item"]}'
PUT /api/v1/free-ipv6/draft write

Save RIPE details as a draft #

Check and keep the RIPE details while the application is under review. Nothing is sent to RIPE; every lookup is repeated at registration.

MCP tool: prepare_free_ipv6

ParameterTypeInDescription
netname required string≤ 80 body The netname of the inet6num object (letters, digits, - and _).
country required string≤ 2 body ISO 3166 country code of the network, such as DE.
descr string≤ 200 body A description line for the inet6num object.
org required string≤ 40 body Your RIPE organisation (ORG-...). It must carry mnt-ref: BGP43-MNT.
admin_c required string≤ 40 body NIC handle of the administrative contact (a RIPE person or role).
tech_c required string≤ 40 body NIC handle of the technical contact (a RIPE person or role).
nameservers array[string] body Nameservers for reverse DNS, at least two to delegate the zone. An empty list removes the delegation.
Example request
curl
curl -sS -X PUT 'https://bgp43.net/api/v1/free-ipv6/draft' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"netname": "netname", "country": "country", "org": "org", "admin_c": "admin_c", "tech_c": "tech_c"}'
PUT /api/v1/free-ipv6/origin write

Change the origin #

Announce the block from the BGP43 network or from one of your approved ASNs. The new ROA is signed before the old one is revoked.

MCP tool: change_free_ipv6_origin

ParameterTypeInDescription
mode required string body byoip announces the block from the BGP43 network; asn announces it from one of your own approved ASNs (asn_id).One of: byoip, asn
asn_id integer≥ 1 body For mode asn: the approved ASN that originates the block.
max_length integer46..48 body For mode asn: the ROA max length, up to /48.
Example request
curl
curl -sS -X PUT 'https://bgp43.net/api/v1/free-ipv6/origin' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "byoip"}'
POST /api/v1/free-ipv6/register write

Register the block #

After approval: register the block in the RIPE database and start publishing it. BGP43 signs the ROA, creates inet6num and route6, links BYOIP routing and delegates reverse DNS.

MCP tool: register_free_ipv6

ParameterTypeInDescription
netname required string≤ 80 body The netname of the inet6num object (letters, digits, - and _).
country required string≤ 2 body ISO 3166 country code of the network, such as DE.
descr string≤ 200 body A description line for the inet6num object.
org required string≤ 40 body Your RIPE organisation (ORG-...). It must carry mnt-ref: BGP43-MNT.
admin_c required string≤ 40 body NIC handle of the administrative contact (a RIPE person or role).
tech_c required string≤ 40 body NIC handle of the technical contact (a RIPE person or role).
nameservers array[string] body Nameservers for reverse DNS, at least two to delegate the zone. An empty list removes the delegation.
ds_records array[string] body DNSSEC: DS or DNSKEY records of the reverse zones in zone-file form (zone. IN DS ... or zone. IN DNSKEY ...), one per item; a DNSKEY becomes its SHA-256 DS. A /48 also takes bare RDATA. An empty list removes every DS record; omitted, the stored records stay.
mode required string body byoip announces the block from the BGP43 network; asn announces it from one of your own approved ASNs (asn_id).One of: byoip, asn
asn_id integer≥ 1 body For mode asn: the approved ASN that originates the block.
max_length integer46..48 body For mode asn: the ROA max length, up to /48.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/free-ipv6/register' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"netname": "netname", "country": "country", "org": "org", "admin_c": "admin_c", "tech_c": "tech_c", "mode": "byoip"}'
POST /api/v1/free-ipv6/release writedestructive

Release the block #

Give the block back. BGP43 withdraws routing, removes the ROA and the RIPE objects and does not reuse the space.

MCP tool: release_free_ipv6

ParameterTypeInDescription
confirm_prefix string≤ 64 body The block's prefix, to confirm the release of a registered block.
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/free-ipv6/release' \
  -H "Authorization: Bearer $BGP43_TOKEN"

Tools

The public looking glass on every router.

POST /api/v1/looking-glass read

Run the looking glass #

Run a read-only looking glass query (BIRD route lookups, ping, traceroute, whois) on one or every router. It shares the per-address limit of the public page.

MCP tool: run_looking_glass

ParameterTypeInDescription
action required string body The query to run.One of: route_for, route_for_all, route_origin, route_where, protocols, protocol_detail, route_protocol, route_export_protocol, route_filtered_protocol, ping, traceroute, status, whoisDefault: protocols
target string≤ 200 body The prefix, address, protocol or ASN the action needs.
router string≤ 100 body A router name from list_routers, or all.Default: all
Example request
curl
curl -sS -X POST 'https://bgp43.net/api/v1/looking-glass' \
  -H "Authorization: Bearer $BGP43_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"action": "protocols"}'

Quick human check

One tap to confirm you are not a bot, then the action goes through.

Loading the check…