RED Atlas External API
Project description
redatlas
Canonical OpenAPI contract for the RED Atlas public external API.
Notes for SDK generation:
- Authenticated endpoints use the
Authorization: Bearer ...header. - The bearer token may be either an API key (
ra_live_...) or an access JWT, depending on the endpoint and workflow. - Refresh and logout use the
apiRefreshTokencookie.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 0.1.0
- Generator version: 7.14.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import redatlas
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import redatlas
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import redatlas
from redatlas.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8000/external-api
# See configuration.py for a list of all supported configuration parameters.
configuration = redatlas.Configuration(
host = "http://localhost:8000/external-api"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API key or JWT): bearerAuth
configuration = redatlas.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with redatlas.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = redatlas.APIKeysApi(api_client)
create_api_key_request = redatlas.CreateApiKeyRequest() # CreateApiKeyRequest |
try:
# Create a new API key
api_response = api_instance.keys_create(create_api_key_request)
print("The response of APIKeysApi->keys_create:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling APIKeysApi->keys_create: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost:8000/external-api
| Class | Method | HTTP request | Description |
|---|---|---|---|
| APIKeysApi | keys_create | POST /v1/account/keys | Create a new API key |
| APIKeysApi | keys_list | GET /v1/account/keys | List API keys for the authenticated client |
| APIKeysApi | keys_revoke | DELETE /v1/account/keys/{id} | Revoke an API key |
| APIKeysApi | keys_rotate | POST /v1/account/keys/{id}/rotate | Rotate an API key |
| AuthApi | auth_accept_invite | POST /v1/auth/invite/accept | Accept an invite and create a member session |
| AuthApi | auth_change_password | POST /v1/auth/change-password | Change the authenticated client password |
| AuthApi | auth_delete_me | DELETE /v1/auth/me | Delete the authenticated account |
| AuthApi | auth_forgot_password | POST /v1/auth/forgot-password | Request a password reset link |
| AuthApi | auth_invite_info | GET /v1/auth/invite/{token} | Validate an invite token and return invite metadata |
| AuthApi | auth_login | POST /v1/auth/login | Log in with email and password |
| AuthApi | auth_logout | POST /v1/auth/logout | Log out and revoke the refresh token |
| AuthApi | auth_me | GET /v1/auth/me | Get the authenticated client profile |
| AuthApi | auth_refresh | POST /v1/auth/refresh | Refresh the access token using the refresh cookie |
| AuthApi | auth_register | POST /v1/auth/register | Register a new API client |
| AuthApi | auth_reset_password | POST /v1/auth/reset-password | Exchange a reset token for a new password |
| AuthApi | auth_update_me | PATCH /v1/auth/me | Update the authenticated client profile |
| BillingApi | billing_cancel_subscription | DELETE /v1/billing/subscription | Cancel the current subscription at period end |
| BillingApi | billing_change_plan | PUT /v1/billing/plan | Change the current billing plan |
| BillingApi | billing_get_payment_method | GET /v1/billing/payment-method | Get the saved payment method |
| BillingApi | billing_handle_webhook | POST /v1/billing/webhook | Stripe webhook endpoint for API billing |
| BillingApi | billing_list_invoices | GET /v1/billing/invoices | List recent invoices |
| BillingApi | billing_purchase_topup | POST /v1/billing/topup | Purchase a one-time credit top-up |
| BillingApi | billing_status | GET /v1/billing | Get the current billing status |
| BillingApi | billing_subscribe | POST /v1/billing/subscribe | Subscribe to a paid plan |
| BillingApi | billing_update_payment_method | PUT /v1/billing/payment-method | Update the saved payment method |
| ChangelogApi | changelog_create | POST /v1/changelog | Create a changelog entry |
| ChangelogApi | changelog_delete | DELETE /v1/changelog/{id} | Delete a changelog entry |
| ChangelogApi | changelog_list | GET /v1/changelog | List published changelog entries |
| ChangelogApi | changelog_update | PUT /v1/changelog/{id} | Update a changelog entry |
| DataApi | data_get | GET /v1/data/{market}/{entityType}/{id} | Get a single record by identifier |
| DataApi | data_list | GET /v1/data/{market}/{entityType} | List records for a market and entity type |
| DataApi | data_market | GET /v1/data/{market} | Get the available entities for a market |
| HealthApi | health_get | GET /v1/health | Health check for the external API |
| NotificationsApi | notifications_get_preferences | GET /v1/account/notifications/preferences | Get notification preferences |
| NotificationsApi | notifications_list | GET /v1/account/notifications | List the latest in-app notifications |
| NotificationsApi | notifications_mark_all_read | PUT /v1/account/notifications/read-all | Mark all notifications as read |
| NotificationsApi | notifications_mark_read | PUT /v1/account/notifications/{id}/read | Mark a single notification as read |
| NotificationsApi | notifications_unread_count | GET /v1/account/notifications/unread-count | Get unread notification count |
| NotificationsApi | notifications_update_preferences | PUT /v1/account/notifications/preferences | Update notification preferences |
| PlansApi | plans_list | GET /v1/plans | List public plans |
| ReportsApi | reports_create | POST /v1/reports | Create a unified report request |
| ReportsApi | reports_create_avm | POST /v1/reports/avm | Create an AVM report |
| ReportsApi | reports_create_comparables | POST /v1/reports/comparables | Create a comparables report |
| ReportsApi | reports_get | GET /v1/reports/{id} | Get a report by id |
| ReportsApi | reports_get_public | GET /v1/reports/public/{reportId} | Get a public report payload for rendering |
| ReportsApi | reports_get_white_label | GET /v1/reports/white-label | Get the current white-label configuration |
| ReportsApi | reports_list | GET /v1/reports | List reports for the authenticated client |
| ReportsApi | reports_update_white_label | PUT /v1/reports/white-label | Update the current white-label configuration |
| TeamApi | team_invite | POST /v1/team/invite | Invite a new team member |
| TeamApi | team_list | GET /v1/team | List team members for the authenticated client |
| TeamApi | team_remove | DELETE /v1/team/{memberId} | Deactivate a team member |
| TeamApi | team_update | PATCH /v1/team/{memberId} | Update a team member role |
| UsageApi | usage_by_endpoint | GET /v1/account/usage/by-endpoint | Get usage grouped by endpoint |
| UsageApi | usage_by_market | GET /v1/account/usage/by-market | Get usage grouped by market |
| UsageApi | usage_daily | GET /v1/account/usage/daily | Get usage grouped by day |
| UsageApi | usage_summary | GET /v1/account/usage | Get the current billing-period usage summary |
Documentation For Models
- AcceptInviteRequest
- ApiKey
- ApiKeyWithSecret
- ApiKeyWithSecretResponse
- ApiKeysResponse
- AppNotification
- AuthSession
- AuthSessionResponse
- AvmReportRequest
- BillingPlan
- BillingStatus
- BillingStatusResponse
- CancelSubscriptionPayload
- CancelSubscriptionResponse
- ChangePasswordRequest
- ChangePlanRequest
- ChangelogEntriesResponse
- ChangelogEntry
- ChangelogEntryResponse
- ChangelogTag
- ClientProfile
- ClientProfileResponse
- ComparablesReportRequest
- CreateApiKeyRequest
- CreateChangelogEntryRequest
- DailyUsageItem
- DailyUsageResponse
- DataListResponse
- DataSingleResponse
- DataSingleResponseMeta
- DateRangeMeta
- EntityType
- ErrorResponse
- ForgotPasswordRequest
- GenericDataResponse
- HealthResponse
- InlineObject
- InviteInfo
- InviteInfoResponse
- InviteMemberRequest
- Invoice
- InvoicesResponse
- ListingType
- LoginRequest
- Market
- MarketInfo
- MarketInfoResponse
- MessagePayload
- MessageResponse
- NotificationPreferences
- NotificationPreferencesResponse
- NotificationType
- NotificationsMeta
- NotificationsResponse
- PaginationMeta
- PaymentErrorResponse
- PaymentMethod
- PaymentMethodResponse
- Plan
- PlansResponse
- PublicReportData
- PublicReportResponse
- QuotaExceededResponse
- RateLimit
- RefreshPayload
- RefreshResponse
- RegisterRequest
- ReportListResponse
- ReportListResponseMeta
- ReportLocation
- ReportResponse
- ReportSummary
- ReportType
- ResetPasswordRequest
- SubscribeRequest
- SubscribeResponseEnvelope
- SubscribeResult
- TeamInvitePayload
- TeamInviteResponse
- TeamMember
- TeamMembersResponse
- TierAccessDeniedResponse
- TopupRequest
- TopupResponse
- TopupResult
- UnifiedReportRequest
- UnreadNotificationCountPayload
- UnreadNotificationCountResponse
- UpdateChangelogEntryRequest
- UpdateClientRequest
- UpdateNotificationPreferencesRequest
- UpdatePaymentMethodRequest
- UpdateTeamMemberPayload
- UpdateTeamMemberRequest
- UpdateTeamMemberResponse
- UpdateWhiteLabelRequest
- UsageByEndpointItem
- UsageByEndpointResponse
- UsageByMarketItem
- UsageByMarketResponse
- UsagePlan
- UsageSummary
- UsageSummaryResponse
- WhiteLabelConfig
- WhiteLabelResponse
Documentation For Authorization
Authentication schemes defined for the API:
bearerAuth
- Type: Bearer authentication (API key or JWT)
cookieAuth
- Type: API key
- API key parameter name: apiRefreshToken
- Location:
adminKeyAuth
- Type: API key
- API key parameter name: x-admin-key
- Location: HTTP header
Author
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redatlas-0.1.0.tar.gz.
File metadata
- Download URL: redatlas-0.1.0.tar.gz
- Upload date:
- Size: 94.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
851b479a1e2301c85a6a812af5fa43fc0f9b690c382fb4a97b25a0f54bff3b58
|
|
| MD5 |
d8bc8020f027b121d10d04dacd30fdfb
|
|
| BLAKE2b-256 |
b838371d52bb10479ed4fa82faa3ae9eab858cf2b597ff967859d595590a96f9
|
File details
Details for the file redatlas-0.1.0-py3-none-any.whl.
File metadata
- Download URL: redatlas-0.1.0-py3-none-any.whl
- Upload date:
- Size: 222.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b2a38f710ae50d6f415849575103ddbae047bc32e2a173f553b458a391a6442
|
|
| MD5 |
51952b5e9b4cc0648d8279fc5ef31f58
|
|
| BLAKE2b-256 |
fb1b143ea32e445d9683b220c2d99d18fbbc4faf69b5fa6c32102ecd66ba5d89
|