Agentic dashboard assistant
POST
/v1/brands/{brand}/assistant
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/assistant';const options = { method: 'POST', headers: { cookie: '__Host-repf_session=<__Host-repf_session>', 'Content-Type': 'application/json' }, body: '{"messages":[{"role":"user","content":[{"type":"example"}]}],"system":"example","maxTokens":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/assistant \ --header 'Content-Type: application/json' \ --cookie __Host-repf_session=<__Host-repf_session> \ --data '{ "messages": [ { "role": "user", "content": [ { "type": "example" } ] } ], "system": "example", "maxTokens": 1 }'Runs tools with the session user’s permissions. Sensitive actions (send, schedule, resume) create an action pending confirmation; they are never executed immediately.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
messages
required
Array<object>
object
role
required
string
content
required
Any of:
string
Array<object>
object
type
required
string
key
additional properties
system
string
maxTokens
integer
Responses
Section titled “Responses”Result of the assistant turn
Media typeapplication/json
object
text
required
string
toolCallsMade
required
integer
pendingActions
required
Array<object>
object
id
required
string
tool
required
string
confirmUrl
required
string
expiresAt
required
string
provider
required
string
model
required
string
Example generated
{ "text": "example", "toolCallsMade": 1, "pendingActions": [ { "id": "example", "tool": "example", "confirmUrl": "example", "expiresAt": "example" } ], "provider": "example", "model": "example"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Too many attempts
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}