This endpoint allows you to issue new API keys for their account programmatically. The only key-type that can be used to issue new keys is the login user's JWT Bearer Token.
The purpose of this endpoint is to allow for programmatic creation of API keys that may be used for multiple projects, individual users, or a variety of other use cases where a single API key pair across an account is not sufficient.
This endpoint will return three values: The API Key, the API Secrect, and a JWT Bearer Token. Make sure to record the API Secret and the JWT as they will not be accessible again.
Request Body
Name
Type
Description
key_name
string
Generate JWT token
POSThttps://api.filswan.com/user/api_keys/jwt
To use the bearer authentication model, you will need the JWT that is generated using this API.
This token can be used as an Authorization header for all your API requests in the following format: "Authorization": "Bearer YOUR_JWT"
Request Body
Name
Type
Description
access_token
string
apikey
string
Miners
These endpoints return details about storage providers specified by the requested IDs.
This endpoint allows you to get a list of storage providers.
Path Parameters
Name
Type
Description
limit
integer
Number of items in one page. Default: 10
offset
integer
Page number, starts from 0. Default: 0
location
string
The location of miners. If empty, it shows miners at all locations. Possible values: Global, Asia, Africa, North America, South America, Europe, Oceania
offline_deal_available
integer
Miner accept offline deals or not. If empty, it shows all miners. Possible values: 1, 0
status
string
The status of miners. If empty, it shows all miners in any status. Possible values: Active, Offline.
sort_by
string
Possible values: update_time_str, price, verified_price, score, status, location
order
string
Possible values: asc, desc
Single Storage Providers Detail
GEThttps://api.filswan.com/miners/{{miner_id}}
This endpoint allows you to get details of the miner specified by the requested provider ID.
Update Storage Provider Info
POSThttps://api.filswan.com/miner/info
This endpoint allows you to update your storage provider information.
Headers
Name
Type
Description
authorization
string
Request Body
Name
Type
Description
miner_fid
string
bid_mode
integer
Possible values: 1,0
start_epoch
number
location
string
offline_deal_available
string
Possible values: true/false
expected_sealing_time
number
Tasks
These endpoints return details about tasks specified by the requested IDs.
The new deal status. Possible values: FileImporting, FileImported, DealActive, ImportFailed
note
string
The additional information you would like to provide regarding the deal
List of Supported API Methods
The list below documents the API methods that the FilSwan platform currently supports. When a response payload is present, all responses are returned in JSON format.