Portabase Logo
Portabase DashboardAPIOrganizations

Attach an agent to an organization

POST
/organizations/{id}/agents

Authorization

apiKeyAuth
headerx-api-key<token>

API key generated from the Portabase dashboard. Pass as the x-api-key header.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
agentId*string
Formatuuid

Response Body

Agent attached to the organization

application/json
  1. response
data*
Example Request
curl -X POST 'https://portabase.example.com/api/v1/organizations/123e4567-e89b-12d3-a456-426614174000/agents' \  -H 'Content-Type: application/json' \  -d '{  "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2"}'
Example Response
{  "data": {    "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",    "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2"  }}