Invitations
To add a Member to a Deepgram Project, you can use the Deepgram Console or the Deepgram API to send an Invitation. When sending an Invitation, you provide an email address for the Member, and Deepgram generates an invitation link and emails it to them.
Leave Project Removes the authenticated account from the specified project. Will also delete API Keys created by the account for the specified project. If the authenticated account is the only account on the project with the scope owner
, the call will fail.
Required account scope(s): project:write
.
Path Parameters Unique identifier of the project from which you want to remove the authenticated account.
Responses Status
Description 200 Success
Account removed from project.
Response Schema message: string
Success message.
DELETE /projects/ {project_id}/leave
Leave Project
curl Node.js Python .NET Ruby PHP
curl --request DELETE \
--url 'https://api.deepgram.com/v1/projects/{project_id}/leave' \
--header 'Authorization: Token <YOUR_DEEPGRAM_API_KEY>' \
--header 'content-type: application/json'
const http = require ( "https" );
const options = {
method: "DELETE" ,
hostname: "api.deepgram.com" ,
port: null ,
path: "/v1/projects/{project_id}/leave" ,
headers: {
Authorization: "Token <YOUR_DEEPGRAM_API_KEY>" ,
"content-type" : "application/json" ,
},
};
const req = http. request (options, function ( res ) {
const chunks = [];
res. on ( "data" , function ( chunk ) {
chunks. push (chunk);
});
res. on ( "end" , function () {
const body = Buffer. concat (chunks);
console. log (body. toString ());
});
});
req. end ();
import http.client
conn = http.client.HTTPSConnection( "api.deepgram.com" )
headers = {
'Authorization' : "Token <YOUR_DEEPGRAM_API_KEY>" ,
'content-type' : "application/json"
}
conn.request( "DELETE" , "/v1/projects/ {project_id} /leave" , headers = headers)
res = conn.getresponse()
data = res.read()
print (data.decode( "utf-8" ))
var client = new RestClient ( "https://api.deepgram.com/v1/projects/{project_id}/leave" );
var request = new RestRequest (Method.DELETE);
request. AddHeader ( "Authorization" , "Token <YOUR_DEEPGRAM_API_KEY>" );
request. AddHeader ( "content-type" , "application/json" );
IRestResponse response = client. Execute (request);
require 'uri'
require 'net/http'
require 'openssl'
url = URI ( "https://api.deepgram.com/v1/projects/{project_id}/leave" )
http = Net :: HTTP . new (url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL :: SSL :: VERIFY_NONE
request = Net :: HTTP :: Delete . new (url)
request[ "Authorization" ] = 'Token <YOUR_DEEPGRAM_API_KEY>'
request[ "content-type" ] = 'application/json'
response = http.request(request)
puts response.read_body
<? php
$curl = curl_init ();
curl_setopt_array ($curl, [
CURLOPT_URL => "https://api.deepgram.com/v1/projects/{project_id}/leave" ,
CURLOPT_RETURNTRANSFER => true ,
CURLOPT_ENCODING => "" ,
CURLOPT_MAXREDIRS => 10 ,
CURLOPT_TIMEOUT => 30 ,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 ,
CURLOPT_CUSTOMREQUEST => " DELETE " ,
CURLOPT_HTTPHEADER => [
"Authorization: Token <YOUR_DEEPGRAM_API_KEY>" ,
"content-type: application/json"
],
]);
$response = curl_exec ($curl);
$err = curl_error ($curl);
curl_close ($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}