Workspaces_create
POST
/api/workspaces
const url = 'https://met.cards/api/workspaces';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"companyName":"example","slug":"example","cardSlug":"example","invites":["[email protected]"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://met.cards/api/workspaces \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "companyName": "example", "slug": "example", "cardSlug": "example", "invites": [ "[email protected]" ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
companyName
required
string
slug
required
string
cardSlug
required
string
invites
Array<string>
Examplegenerated
{ "companyName": "example", "slug": "example", "cardSlug": "example", "invites": [ ]}Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}