Overview
POST/team/members/personasteam

Add a persona to a team (requires the persona may act via teams)

Create a record in personas.

Auth: bearerAuth — calls run as the authenticated user.

Request body

application/json · optional

  • teamIdstring
  • personaKeystring

    the persona addressed by its registry key: uuid, persona rdid, or owned-namespace rdid

  • roleoptionalstring
Example
{
  "teamId": "string",
  "personaKey": "string",
  "role": "string"
}
Responses
201

Added persona member

  • idstring
  • teamIdstring
  • memberKind"customer" | "persona"

    which principal userId names — 'customer' (customer.customers) or 'persona' (persona.personas). Present on every response: GET list rows, the add-persona 201, and the by-email add 201 (always a customer).

  • userIdstring

    the member principal id — a customer id, or a persona id when memberKind is 'persona'

  • rolestring
  • addedAtstring
  • emailoptionalstring?

    the member's email (resolved; null for a persona member or a foreign customer)

  • displayNameoptionalstring?
  • personaSlugoptionalstring?

    the persona's slug when memberKind is 'persona' (null for a customer member)

  • personaNameoptionalstring?
Example
{
  "id": "string",
  "teamId": "string",
  "memberKind": "customer",
  "userId": "string",
  "role": "string",
  "addedAt": "string",
  "email": "string",
  "displayName": "string",
  "personaSlug": "string",
  "personaName": "string"
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
403

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
409

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/team/members/personas" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "teamId": "string",
  "personaKey": "string",
  "role": "string"
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/team/members/personas", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"teamId\": \"string\",\n  \"personaKey\": \"string\",\n  \"role\": \"string\"\n}",
});
const data = await res.json();