---
title: "Create a BGP session"
method: POST
path: "/elastic_ips/{elastic_ip_id}/bgp_sessions"
tags: ["Elastic Ips"]
---

# Create a BGP session

`POST /elastic_ips/{elastic_ip_id}/bgp_sessions`

## Request

- Base URL: `https://api.latitude.sh`
- URL: `https://api.latitude.sh/elastic_ips/{elastic_ip_id}/bgp_sessions`
- Auth: API key in header `Authorization`

Announce an elastic IP from a server over BGP

## Path parameters

- `elastic_ip_id` string, required

## Request body

- CreateBgpSession
  - `data` object, required
    - `type` 'bgp_sessions', required
    - `attributes` object
      - `server_id` string, required: The server that will announce the elastic IP over BGP
      - `requestor_id` string: Optional identifier of the requestor, recorded for auditing

## Response `202`

Accepted

## Changes

- **2026-08-27** `d564cb4aa86e`: 1 info
  - added the optional property `data/attributes/peer_address` to the response with the `202` status
- **2026-07-31** `795dfc010f2a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/latitude/apis/latitude-sh-api/changes/elastic_ips/:elastic_ip_id/bgp_sessions/post.md)

---

[API](https://skmtc.dev/latitude/apis/latitude-sh-api.md) · [All operations](https://skmtc.dev/latitude/apis/latitude-sh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/latitude/apis/latitude-sh-api/revisions/17e955aa247b?raw)
