Skip to main content
POST
https://api-new.paineloffice.click
/
nexus
Criar Teste Nexus
curl --request POST \
  --url https://api-new.paineloffice.click/nexus \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "notes": "<string>",
  "trial": true
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": 123,
    "username": "<string>",
    "email": "<string>",
    "status": "<string>",
    "bandwidth_limit": 123,
    "expires_at": "<string>",
    "server_url": "<string>",
    "access_token": "<string>"
  }
}

Endpoint

POST /nexus
Authorization: Bearer <token>

Descrição

Cria um novo teste gratuito Nexus no sistema. Esta é a mesma rota usada para criar usuários Nexus, mas com trial: true para testes gratuitos.

Parâmetros

Authorization
string
required
Bearer token para autenticação
notes
string
Observações
trial
boolean
default:"true"
required
Sempre true para testes gratuitos (valor fixo)

Exemplo de Requisição

{
  "notes": "",
  "trial": true
}

Resposta

success
boolean
Indica se a operação foi bem-sucedida
message
string
Mensagem de confirmação
data
object

Exemplo de Resposta

{
  "message": "Teste Nexus criado com sucesso",
  "data": {
    "id": 3001,
    "username": "teste_nexus_001",
    "email": "[email protected]",
    "status": "active",
    "bandwidth_limit": 200,
    "expires_at": "2024-02-15T10:30:00Z",
    "server_url": "https://nexus.servidor.com",
    "access_token": "nexus_token_xyz789abc123"
  }
}