Get organization by ID
GEThttps://api.astropulse.io/api/v1/organizations/:id
Get organization details by ID
Request
Path Parameters
id stringrequired
Organization ID
Header Parameters
X-Astro-API-Key stringrequired
APIKey
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Organization details retrieved successfully
- application/json
- Schema
- Example (auto)
Schema
data object
idstring
messagestring
statusstring
{
"data": {
"createdAt": "string",
"id": "string",
"members": [
{
"joinedAt": "string",
"role": "string",
"userId": "string"
}
],
"name": "string",
"orgNamespace": "string",
"owner": true,
"ownerUserId": "string",
"planId": "string",
"roles": [
{
"id": "string",
"name": "string",
"permissions": [
{
"description": "string",
"id": "string",
"name": "string"
}
]
}
],
"slug": "string",
"title": "string",
"userRole": "string"
},
"id": "string",
"message": "string",
"status": "string"
}
Invalid request parameters
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
Missing or invalid API key
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
User does not have permission to access this organization
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
Organization not found
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
Rate limit exceeded
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
Internal server error
- application/json
- Schema
- Example (auto)
Schema
body object
{
"body": {
"details": {},
"error": "Resource not found",
"error_code": "NOT_FOUND",
"status": 404,
"trace_id": "trace-5e6f7g8h9i"
}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.astropulse.io/api/v1/organizations/:id");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());