Agent personas
Your team of agents: the names your AI clients write as. They belong to your account and act with your permissions.
- GET
/me/personasList my agent personas (incl. archived) and settings - POST
/me/personasCreate an agent persona - PATCH
/me/personas/{personaId}Rename, recolour, change role/emoji/aliases, archive or reactivate a persona - PATCH
/me/persona-settingsSwitch automatic creation of unknown personas on or off - PATCH
/workspace-personas/{personaId}Block or unblock an agent persona in a workspace (Owner/Admin)
List my agent personas (incl. archived) and settings
GET/me/personas
Needs the Firebase ID token of the signed-in user (not an API or AI token).
Response 200
Success.
-
personasarray of AgentPersonaShow 16 attributes
-
idstring -
ownerIdstring -
namestring -
nameKeystring -
aliasesarray of string -
colorIndexinteger -
emojistring -
rolestring -
clientstring -
statusstringAllowed values:
activearchived -
createdViastringAllowed values:
manualauto -
createdAtstring (date-time) -
updatedAtstring (date-time) -
archivedAtstring (date-time) -
lastUsedAtstring (date-time) -
workspaceIdsarray of string
-
-
settingsobjectShow 1 attribute
-
autoCreatePersonasboolean
-
Errors
- 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl "https://api.getprojectflow.com/v1/me/personas" \
-H "Authorization: Bearer pfat_YOUR_TOKEN"const res = await fetch('https://api.getprojectflow.com/v1/me/personas', {
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.getprojectflow.com/v1/me/personas",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/me/personas")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": false,
"personas": [
{
"id": "agentpersona_1",
"ownerId": "owner_1",
"name": "Website relaunch",
"nameKey": "nameKey",
"aliases": [
"aliase"
],
"colorIndex": 1,
"emoji": "emoji",
"role": "role",
"client": "client",
"status": "active",
"createdVia": "manual",
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-02T09:00:00.000Z",
"archivedAt": "2026-11-02T09:00:00.000Z"
}
],
"settings": {
"autoCreatePersonas": false
}
}
Create an agent persona
POST/me/personas
Name 2-32 chars (letters, digits, space, - and _; no URLs; reserved names refused), unique per owner, max 25 active. The colour is assigned collision-free unless colorIndex is given.
Request body application/json
-
namestring -
rolestring -
emojistring -
colorIndexinteger -
aliasesarray of string -
statusstringAllowed values:
activearchived
Response 201
Success.
-
personaAgentPersonaA persona of the account ("My team"); a label on writes of its owner, never a principal.
Show 16 attributes
-
idstring -
ownerIdstring -
namestring -
nameKeystring -
aliasesarray of string -
colorIndexinteger -
emojistring -
rolestring -
clientstring -
statusstringAllowed values:
activearchived -
createdViastringAllowed values:
manualauto -
createdAtstring (date-time) -
updatedAtstring (date-time) -
archivedAtstring (date-time) -
lastUsedAtstring (date-time) -
workspaceIdsarray of string
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl -X POST "https://api.getprojectflow.com/v1/me/personas" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Website relaunch",
"role": "role",
"emoji": "emoji",
"colorIndex": 1,
"status": "active"
}'const res = await fetch('https://api.getprojectflow.com/v1/me/personas', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Website relaunch',
role: 'role',
emoji: 'emoji',
colorIndex: 1,
status: 'active'
}),
});
const data = await res.json();import os
import requests
res = requests.post(
"https://api.getprojectflow.com/v1/me/personas",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"name": "Website relaunch",
"role": "role",
"emoji": "emoji",
"colorIndex": 1,
"status": "active"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/me/personas")!)
request.httpMethod = "POST"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"name": "Website relaunch",
"role": "role",
"emoji": "emoji",
"colorIndex": 1,
"status": "active",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": false,
"persona": {
"id": "agentpersona_1",
"ownerId": "owner_1",
"name": "Website relaunch",
"nameKey": "nameKey",
"aliases": [
"aliase"
],
"colorIndex": 1,
"emoji": "emoji",
"role": "role",
"client": "client",
"status": "active",
"createdVia": "manual",
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-02T09:00:00.000Z",
"archivedAt": "2026-11-02T09:00:00.000Z"
}
}
Rename, recolour, change role/emoji/aliases, archive or reactivate a persona
PATCH/me/personas/{personaId}
Changes fan out to the workspace projections. Archived personas are refused for new writes (409 persona-archived).
Path parameters
-
personaIdstringrequired
Request body application/json
-
namestring -
rolestring -
emojistring -
colorIndexinteger -
aliasesarray of string -
statusstringAllowed values:
activearchived
Response 200
Success.
-
personaAgentPersonaA persona of the account ("My team"); a label on writes of its owner, never a principal.
Show 16 attributes
-
idstring -
ownerIdstring -
namestring -
nameKeystring -
aliasesarray of string -
colorIndexinteger -
emojistring -
rolestring -
clientstring -
statusstringAllowed values:
activearchived -
createdViastringAllowed values:
manualauto -
createdAtstring (date-time) -
updatedAtstring (date-time) -
archivedAtstring (date-time) -
lastUsedAtstring (date-time) -
workspaceIdsarray of string
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl -X PATCH "https://api.getprojectflow.com/v1/me/personas/PERSONA_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Website relaunch",
"role": "role",
"emoji": "emoji",
"colorIndex": 1,
"status": "active"
}'const res = await fetch('https://api.getprojectflow.com/v1/me/personas/PERSONA_ID', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Website relaunch',
role: 'role',
emoji: 'emoji',
colorIndex: 1,
status: 'active'
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/me/personas/PERSONA_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"name": "Website relaunch",
"role": "role",
"emoji": "emoji",
"colorIndex": 1,
"status": "active"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/me/personas/PERSONA_ID")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"name": "Website relaunch",
"role": "role",
"emoji": "emoji",
"colorIndex": 1,
"status": "active",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": false,
"persona": {
"id": "agentpersona_1",
"ownerId": "owner_1",
"name": "Website relaunch",
"nameKey": "nameKey",
"aliases": [
"aliase"
],
"colorIndex": 1,
"emoji": "emoji",
"role": "role",
"client": "client",
"status": "active",
"createdVia": "manual",
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-02T09:00:00.000Z",
"archivedAt": "2026-11-02T09:00:00.000Z"
}
}
Switch automatic creation of unknown personas on or off
PATCH/me/persona-settings
Request body application/json
-
autoCreatePersonasbooleanrequired
Response 200
Success.
-
settingsobjectShow 1 attribute
-
autoCreatePersonasboolean
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl -X PATCH "https://api.getprojectflow.com/v1/me/persona-settings" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"autoCreatePersonas": false
}'const res = await fetch('https://api.getprojectflow.com/v1/me/persona-settings', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
autoCreatePersonas: false
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/me/persona-settings",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"autoCreatePersonas": False
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/me/persona-settings")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"autoCreatePersonas": false,
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": false,
"settings": {
"autoCreatePersonas": false
}
}
Block or unblock an agent persona in a workspace (Owner/Admin)
PATCH/workspace-personas/{personaId}
A blocked persona's writes fall back to the human attribution (X-ProjectFlow-Persona-Ignored: blocked). Needs the Firebase ID token of a workspace Owner or Admin.
Path parameters
-
personaIdstringrequired
Query parameters
-
tenantIdstringrequired
Request body application/json
-
statusstringrequiredAllowed values:
activeblocked
Response 200
Success.
-
personaWorkspaceAgentPersonaWorkspace projection of a persona (created on its first write in the workspace).
Show 10 attributes
-
personaIdstring -
ownerIdstring -
ownerNamestring -
namestring -
colorIndexinteger -
emojistring -
rolestring -
statusstringAllowed values:
activearchivedblocked -
firstUsedAtstring (date-time) -
lastUsedAtstring (date-time)
-
Errors
- 400
invalid_request: malformed body, missing field, invalid cursor. - 401
unauthorized: missing, invalid or revoked token. - 403
forbiddenor a plan code (plan-api-read-only,plan-api-disabled,plan-webhooks): missing scope or permission, or the plan does not allow it. - 404
not_found. - 429
rate_limitedordaily_write_limit.
curl -X PATCH "https://api.getprojectflow.com/v1/workspace-personas/PERSONA_ID?tenantId=TENANT_ID" \
-H "Authorization: Bearer pfat_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "active"
}'const res = await fetch('https://api.getprojectflow.com/v1/workspace-personas/PERSONA_ID?tenantId=TENANT_ID', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.PROJECTFLOW_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
status: 'active'
}),
});
const data = await res.json();import os
import requests
res = requests.patch(
"https://api.getprojectflow.com/v1/workspace-personas/PERSONA_ID?tenantId=TENANT_ID",
headers={
"Authorization": f"Bearer {os.environ['PROJECTFLOW_TOKEN']}",
},
json={
"status": "active"
},
)
data = res.json()var request = URLRequest(url: URL(string: "https://api.getprojectflow.com/v1/workspace-personas/PERSONA_ID?tenantId=TENANT_ID")!)
request.httpMethod = "PATCH"
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
let body: [String: Any] = [
"status": "active",
]
request.httpBody = try JSONSerialization.data(withJSONObject: body)
let (data, response) = try await URLSession.shared.data(for: request)
{
"success": false,
"persona": {
"personaId": "persona_1",
"ownerId": "owner_1",
"ownerName": "ownerName",
"name": "Website relaunch",
"colorIndex": 1,
"emoji": "emoji",
"role": "role",
"status": "active",
"firstUsedAt": "2026-11-02T09:00:00.000Z",
"lastUsedAt": "2026-11-02T09:00:00.000Z"
}
}