Documentation
Servers

Create Server

Creates a new server for a project

POST
/
api
/
developer
/
projects
/
{projectId}
/
servers
curl -L -X POST 'https://flux.postacksolutions.com/api/developer/projects/{projectId}/servers' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Production Server",
    "description": "Main production instance"
  }'
200
{
  "server": {
    "id": "server_abc123xyz",
    "name": "Production Server",
    "description": "Main production instance",
    "apiKey": "key_abc123xyz",
    "projectId": "proj_abc123xyz",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your developer access token.

Path Parameters

projectId
string
required

The unique identifier of the project

Request Body

name
string
required

The name of the server

description
string

Optional description of the server

Response

200
application/json

Successful response

server
object

The created server object. Note: The apiKey is only shown once in the response. Make sure to save it securely.