Skip to main content
POST
/
v1
/
teams
/
{team_id}
/
invitations
/
{invitation_id}
/
resend
Resend Invitation
curl --request POST \
  --url https://api.dataraven.io/v1/teams/{team_id}/invitations/{invitation_id}/resend \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.dataraven.io/v1/teams/{team_id}/invitations/{invitation_id}/resend"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.dataraven.io/v1/teams/{team_id}/invitations/{invitation_id}/resend', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.dataraven.io/v1/teams/{team_id}/invitations/{invitation_id}/resend",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.dataraven.io/v1/teams/{team_id}/invitations/{invitation_id}/resend"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.dataraven.io/v1/teams/{team_id}/invitations/{invitation_id}/resend")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.dataraven.io/v1/teams/{team_id}/invitations/{invitation_id}/resend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "<string>",
  "invited_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "accepted_at": "2023-11-07T05:31:56Z",
  "declined_at": "2023-11-07T05:31:56Z"
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string<uuid>
required
invitation_id
string<uuid>
required

Response

Successful Response

Schema for invitation in team admin responses.

id
string<uuid>
required
team_id
string<uuid>
required
email
string
required
role
enum<string>
required

User roles within teams (hierarchical).

  • OWNER (4): Full control including team deletion
  • ADMIN (3): All operations except team deletion
  • OPERATOR (2): Day-to-day operations (run jobs, view logs), no setup/config
  • VIEWER (1): Read-only audit access
Available options:
viewer,
operator,
admin,
owner
status
enum<string>
required

Team invitation status values.

Available options:
pending,
accepted,
declined,
expired,
revoked
invited_by
string<uuid>
required
created_at
string<date-time>
required
expires_at
string<date-time>
required
user_id
string<uuid> | null
accepted_at
string<date-time> | null
declined_at
string<date-time> | null