Get Providers
GET getProviders
You can retrieve a list of supported providers.
HTTP Request
https://interface.flashift.app/api/dev/v1/getProviders
Request
- Request
- cURL
- Python
- JavaScript
Header Parameters
Name | Type | Required | Description |
---|---|---|---|
Authorization | string | Yes | Your API Key |
Accept | string | Yes | Set this to application/json |
curl --location
--request GET 'https://interface.flashift.app/api/dev/v1/getProviders' \
--header 'Authorization: {{apiKey}}' \
--header 'Accept: application/json'
import requests
# Define the API URL
url = 'https://interface.flashift.app/api/dev/v1/getProviders'
# Define the headers, including the API key
headers = {
'Authorization': '{{apiKey}}',
'Accept': 'application/json' # Ensure the correct content type is set
}
# Send the GET request
response = requests.get(url, headers=headers)
# Check if the request was successful
if response.status_code == 200:
# Print the JSON response
print(response.json())
else:
print(f"Failed to retrieve data. Status code: {response.status_code}")
// Define the API URL
const url = 'https://interface.flashift.app/api/dev/v1/getProviders';
// Define the headers, including the API key and Accept header
const headers = new Headers({
'Authorization': '{{apiKey}}',
'Accept': 'application/json' // Ensure the correct content type is set
});
// Send the GET request
fetch(url, { headers })
.then(response => {
if (response.ok) {
return response.json();
} else {
throw new Error(`Failed to retrieve data. Status code: ${response.status}`);
}
})
.then(data => {
// Print the JSON response
console.log(data);
})
.catch(error => {
console.error('Error:', error);
});
Response
- Example
- Success
- Errors
Sample Response
application/json
[
{
"name": "FixedFloat",
"enable": true
},
{
"name": "Changelly",
"enable": false
},
{
"name": "ChangeNOW",
"enable": true
}
]
Response Parameters
array of provider
Name | Type | Description |
---|---|---|
name | string | Provider's name |
enable | boolean | Indicates whether the provider is currently available. |
Error codes
Code | Description |
---|---|
429 | This means you’ve already reached the API limit. If you need an increased rate limit, please contact [email protected], or you can wait until the limit is reset. |
500 | There is an error on the server side. |