Documentation
Servers

Regenerate Server API Key

Regenerates the API key for a server. The new key is only shown once in the response.

POST
/
api
/
developer
/
projects
/
{projectId}
/
servers
/
{serverId}
/
regenerate-key
curl -L -X POST 'https://flux.postacksolutions.com/api/developer/projects/{projectId}/servers/{serverId}/regenerate-key' \
  -H 'Authorization: Bearer YOUR_TOKEN'
200
{
  "serverId": "server_abc123xyz",
  "apiKey": "key_xyz789abc",
  "message": "API key regenerated successfully. Save this key - it will not be shown again."
}

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

serverId
string
required

The unique identifier of the server

Response

200
application/json

Successful response

serverId
string

The server ID

apiKey
string

The new API key. Note: This key is only shown once in the response. Make sure to save it securely.

message
string

Success message