You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/introduction.mdx
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,21 @@ sidebarTitle: Introduction
4
4
description: The Plane API is organized around REST. Our API has predictable resource-oriented URLs, accepts application/json request bodies, returns JSON responses, and uses standard HTTP response codes, authentication, and verbs.
5
5
---
6
6
7
+
### Base URL
8
+
All requests to the Plane Cloud API must be made to the following base URL:
9
+
```
10
+
https://api.plane.so/
11
+
```
12
+
This URL should be prefixed to all endpoint paths.
13
+
14
+
For example, to retrieve all projects in a workspace:
15
+
```
16
+
GET https://api.plane.so/api/v1/workspaces/:workspace-slug/projects/
17
+
```
18
+
<Note>
19
+
💡 If you're using a self-hosted instance of Plane, your API base URL will differ based on your custom domain and setup.
20
+
</Note>
21
+
7
22
### Authentication
8
23
9
24
Our APIs use a key for authentication. The API key should be included in the header of each request to verify the client's identity and permissions. The key should be passed as the value of the `X-API-Key` header.
Ensure that your reverse proxy setup follows the template provided, and that the forwarded headers and ports are correctly set to match the environment variable configuration.
39
+
40
+
41
+
## Configuration templates
7
42
8
43
All configurations include:
9
44
- Automatic HTTPS redirection
@@ -14,9 +49,7 @@ All configurations include:
14
49
- Caddy: Handles certificates automatically
15
50
- Traefik: Uses Let’s Encrypt
16
51
17
-
## Configuration templates
18
52
19
-
### NGINX
20
53
<Accordiontitle="NGINX configuration">
21
54
```bash
22
55
server {
@@ -59,7 +92,7 @@ server {
59
92
60
93
</Accordion>
61
94
62
-
### Caddy
95
+
63
96
<Accordion title="Caddy configuration">
64
97
```bash
65
98
<domain> {
@@ -94,7 +127,6 @@ server {
94
127
95
128
</Accordion>
96
129
97
-
### Traefik
98
130
<Accordion title="Traefik configuration">
99
131
```bash
100
132
entryPoints:
@@ -153,16 +185,3 @@ providers:
153
185
```
154
186
</Accordion>
155
187
156
-
## Proxy setup
157
-
158
-
1. Choose the appropriate [configuration template](#configuration-templates) for your reverse proxy.
0 commit comments