API Reference
Get Storage types
Retrieves a list of storage types supported by Claid.
To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
List of storage types.
Authorization is required.
Not enough permissions.
Request
Response body
Get Connected Storages
Retrieves a list of storages connected to your Claid account, as well as their id, name, type, and parameters.
To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
Successful Response
Authorization is required.
Not enough permissions.
Request
Response body
Create a new Claid Storage
Connects storage to Claid. You can connect your AWS S3 or GCP bucket, or your own web folder.
To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
The name of storage in Claid. Note: it doesn't have to be the same as a global name of a bucket.
An enumeration.
Global parameters of storage (as opposed to Claid's internal properties, such as name and type)
Successful Response
Authorization is required.
Not enough permissions.
Unprocessable Entity.
Here is an example of creating AWS storage via API:
Request
Response body
parameters supported by the AWS S3 storage:
name
string
bucket
string
prefix
string
credentials.access_key
string
credentials.secret_access_key
string
parameters supported by the GCS storage: #todo
name
string
bucket
string
prefix
string
credentials.access_key
string
credentials.secret_access_key
string
parameters supported by the Web Folder storage:
name
string
base_url
string
Describe storage by id
Retrieves information about particular storage, including its id, name, type, and parameters.
To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
Successful Response
Authorization is required.
Not enough permissions.
Storage not found.
Unprocessable Entity.
Request
Response body
Delete storage by id
Disconnects storage from Claid. Note: It doesn't delete your bucket on your cloud platform.
To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
Successful Response
Authorization is required.
Not enough permissions.
Storage not found.
Unprocessable Entity.
Request
Update storage by id
Changes storage name, type, and/or parameters.
To work with the Claid API, send requests over HTTPS and authenticate using the Authorization header in the following format:Authorization: Bearer <YOUR_API_KEY>. You do not need to provide a password.
To get your API key, sign in to your Claid account and click Create API key button from the Overview or API keys pages.
Claid API’s base URL is https://api.claid.ai/v1/. All available endpoints are listed in the Storage and Image sections.
Bearer
This API uses OAuth 2.0 bearer token (API key) to authorize requests.
An enumeration.
Successful Response
Authorization is required.
Not enough permissions.
Storage not found.
Unprocessable Entity.
Request
Response body
Last updated
