Get Tenant
GET
/v1/tenants/{tenant_id}
const url = 'https://api.uavcrew.ai/v1/tenants/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.uavcrew.ai/v1/tenants/example \ --header 'Authorization: Bearer <token>'Get a specific tenant by ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenant_id
required
Tenant Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
TenantResponse
object
id
required
Id
string
name
required
Name
string
external_id
required
External Id
string
contact_email
required
Contact Email
string
status
required
Status
string
created_at
required
Created At
string
updated_at
required
Updated At
string
Example generated
{ "id": "example", "name": "example", "external_id": "example", "contact_email": "example", "status": "example", "created_at": "example", "updated_at": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}