ProjectFlow Pre-launch

Agent personas

Your team of agents: the names your AI clients write as. They belong to your account and act with your permissions.

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 AgentPersona
    Show 16 attributes
    • idstring
    • ownerIdstring
    • namestring2 to 32 characters
    • nameKeystring
    • aliasesarray of string
    • colorIndexinteger1 to 10
    • emojistring
    • rolestringmax 80 characters
    • clientstring
    • statusstring

      Allowed values: active archived

    • createdViastring

      Allowed values: manual auto

    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • archivedAtstring (date-time)
    • lastUsedAtstring (date-time)
    • workspaceIdsarray of string
  • settingsobject
    Show 1 attribute
    • autoCreatePersonasboolean

Errors

  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200 · shortenedJSON
{
  "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
  • rolestringmax 80 characters
  • emojistring
  • colorIndexinteger1 to 10
  • aliasesarray of string
  • statusstring

    Allowed values: active archived

Response 201

Success.

  • personaAgentPersona

    A persona of the account ("My team"); a label on writes of its owner, never a principal.

    Show 16 attributes
    • idstring
    • ownerIdstring
    • namestring2 to 32 characters
    • nameKeystring
    • aliasesarray of string
    • colorIndexinteger1 to 10
    • emojistring
    • rolestringmax 80 characters
    • clientstring
    • statusstring

      Allowed values: active archived

    • createdViastring

      Allowed values: manual auto

    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • archivedAtstring (date-time)
    • lastUsedAtstring (date-time)
    • workspaceIdsarray of string

Errors

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 201 · shortenedJSON
{
  "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
  • rolestringmax 80 characters
  • emojistring
  • colorIndexinteger1 to 10
  • aliasesarray of string
  • statusstring

    Allowed values: active archived

Response 200

Success.

  • personaAgentPersona

    A persona of the account ("My team"); a label on writes of its owner, never a principal.

    Show 16 attributes
    • idstring
    • ownerIdstring
    • namestring2 to 32 characters
    • nameKeystring
    • aliasesarray of string
    • colorIndexinteger1 to 10
    • emojistring
    • rolestringmax 80 characters
    • clientstring
    • statusstring

      Allowed values: active archived

    • createdViastring

      Allowed values: manual auto

    • createdAtstring (date-time)
    • updatedAtstring (date-time)
    • archivedAtstring (date-time)
    • lastUsedAtstring (date-time)
    • workspaceIdsarray of string

Errors

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200 · shortenedJSON
{
  "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.

  • settingsobject
    Show 1 attribute
    • autoCreatePersonasboolean

Errors

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200JSON
{
  "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

  • statusstringrequired

    Allowed values: active blocked

Response 200

Success.

  • personaWorkspaceAgentPersona

    Workspace projection of a persona (created on its first write in the workspace).

    Show 10 attributes
    • personaIdstring
    • ownerIdstring
    • ownerNamestring
    • namestring
    • colorIndexinteger1 to 10
    • emojistring
    • rolestring
    • statusstring

      Allowed values: active archived blocked

    • firstUsedAtstring (date-time)
    • lastUsedAtstring (date-time)

Errors

  • 400invalid_request: malformed body, missing field, invalid cursor.
  • 401unauthorized: missing, invalid or revoked token.
  • 403forbidden or a plan code (plan-api-read-only, plan-api-disabled, plan-webhooks): missing scope or permission, or the plan does not allow it.
  • 404not_found.
  • 429rate_limited or daily_write_limit.

All error codes

Request
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)
Response · 200JSON
{
  "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"
  }
}

↑↓ to select, Enter to open, Esc to close