Workspace
Create a workspace
Workspace
Create a workspace
POST
/
api
/
v1
/
workspace
curl --request POST \
--url https://prod.oneloop.ai/api/v1/workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>"
}'
{
"workspace": {
"id": "<string>",
"name": "<string>",
"teamId": "<string>",
"defaultKeyPrefix": "<string>",
"defaultAllowedIPs": [
"<string>"
],
"defaultRateLimitPerSecond": 1,
"defaultExpiration": 1,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
The created workspace
Required range:
x > 0
Required range:
x > 0
curl --request POST \
--url https://prod.oneloop.ai/api/v1/workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>"
}'
{
"workspace": {
"id": "<string>",
"name": "<string>",
"teamId": "<string>",
"defaultKeyPrefix": "<string>",
"defaultAllowedIPs": [
"<string>"
],
"defaultRateLimitPerSecond": 1,
"defaultExpiration": 1,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}