GET
/
get-orgs
Get organizations information
curl --request GET \
  --url https://app.phonely.ai/api/get-orgs \
  --header 'X-Authorization: <api-key>'
[
  {
    "uid": "<string>",
    "agentId": "<string>",
    "name": "<string>",
    "country": "<string>",
    "businessPhoneNumber": "<string>"
  }
]
Retrieves a list of all organizations that the authenticated user has access to.

Request

Method: GET
Endpoint: /api/get-orgs
Headers:
  • X-Authorization: Your API key (required)
Query Parameters:
  • uid (string, required): Your user ID

Response

Success Response (200):
[
  {
    "orgId": "string",
    "name": "string"
  }
]
Error Responses:
  • 400 Bad Request: Invalid request parameters
  • 401 Unauthorized: Invalid or missing API key
  • 500 Internal Server Error: Server error

Example

curl -X GET "https://app.phonely.ai/api/get-orgs?uid=user123" \
  -H "X-Authorization: your-api-key"

Authorizations

X-Authorization
string
header
required

Query Parameters

uid
string
required

User ID

Response

Successful response

uid
string

User ID

agentId
string

Agent ID

name
string

Agent name

country
string | null

Country code

businessPhoneNumber
string | null

Business phone number