Skip to main content

Agent Creation

Create Rei Agent by User's Secret Token.

  • URL: /v1/accounts/units

  • Method: POST

  • Headers:

    KeyValue
    AuthorizationBearer user-secret-token
  • Request:


    agentModel string Required

    Allowed values:

    • claude-3.5-sonnet
    • claude-3.7-sonnet

    behaviourPrompt string Required


    temperature int Optional

    Range: 0 to 1


    maxTokens int Optional

    Range: 1 to 2000000


    responseFormat string Optional

    Allowed values: text, json, markdown, html


    color string Optional

    Color code in Hex format

    Format: #FFFFFF


  • Response:
{
"secretToken": "{{rei agent secret token}}"
}

  • Error
Response CodeReason
400Validation Error
401Unauthorized