githubEdit

API Reference

Get Storage types

List Storage Types

get

Retrieves a list of storage types supported by Claid.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2passwordRequired

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.

Token URL:
Responses
chevron-right
200

List of storage types.

application/json

Wrapper for responses

get
/v1/storage/storage-types

Request

Response body

Get Connected Storages

List Storages

get

Retrieves a list of storages connected to your Claid account, as well as their id, name, type, and parameters.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2passwordRequired

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.

Token URL:
Responses
chevron-right
200

Successful Response

application/json

Wrapper for responses

get
/v1/storage/storages

Request

Response body

Create a new Claid Storage

Create Storage

post

Connects storage to Claid. You can connect your AWS S3 or GCP bucket, or your own web folder.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2passwordRequired

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.

Token URL:
Body
namestring · max: 50Required

The name of storage in Claid. Note: it doesn't have to be the same as a global name of a bucket.

typestring · enumRequired

An enumeration.

Possible values:
parametersany ofRequired

Global parameters of storage (as opposed to Claid's internal properties, such as name and type)

or
or
Responses
chevron-right
200

Successful Response

application/json

Wrapper for responses

post
/v1/storage/storages

Here is an example of creating AWS storage via API:

Request

Response body

parameters supported by the AWS S3 storage:

Parameter
Type

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

Get Storage

get

Retrieves information about particular storage, including its id, name, type, and parameters.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2passwordRequired

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.

Token URL:
Path parameters
storage_idintegerRequired
Responses
chevron-right
200

Successful Response

application/json

Wrapper for responses

get
/v1/storage/storages/{storage_id}

Request

Response body

Delete storage by id

Delete Storage

delete

Disconnects storage from Claid. Note: It doesn't delete your bucket on your cloud platform.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2passwordRequired

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.

Token URL:
Path parameters
storage_idintegerRequired
Responses
chevron-right
200

Successful Response

application/json

Wrapper for responses

dataanyOptional
delete
/v1/storage/storages/{storage_id}

Request

Update storage by id

Patch Storage

patch

Changes storage name, type, and/or parameters.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2passwordRequired

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.

Token URL:
Path parameters
storage_idintegerRequired
Body
namestring · max: 50Optional
typestring · enumOptional

An enumeration.

Possible values:
parametersany ofOptional
or
or
Responses
chevron-right
200

Successful Response

application/json

Wrapper for responses

patch
/v1/storage/storages/{storage_id}

Request

Response body

Last updated