💻How to request a read API key
A guide on how to request a read API key
If you are looking to provide a read-only API key, then Vector AI has an endpoint to allow users to simply get one.
You simply need the following endpoint: /project/request_read_api_key
import requests
response = requests.post("https://vectorai-development-api.azurewebsites.net/project/request_read_api_key",
json={
"username": "string",
"api_key": "string",
"read_username": "string"
})
response.json()
let request = await fetch("https://vectorai-development-api.azurewebsites.net/project/request_read_api_key", {
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": JSON.stringify({
"username": "string",
"api_key": "string",
"read_username": "string"
})
})
let json = await request.json()