Forms
Get submission overview
Retrieve comprehensive submission statistics for a project (admin only)
Required API key scope: forms:view.
Get submission overview Retrieve comprehensive submission statistics for a project (admin only) Required API key scope: `forms:view`. GET https://api.appgram.dev/api/v1/contact-forms/overview curl --request GET \ --url 'https://api.appgram.dev/api/v1/contact-forms/overview' \ --header 'x-api-key: <api-key>' Authentication: x-api-key (header) 200: OK 400: Bad Request 401: Unauthorized 403: Forbidden 500: Internal Server Error
Authorizations
x-api-key (header)requiredRequest examples show the credential location. Use a server-side key with the permissions required by this operation.
Query parameters
project_idstringqueryResponses
200OK
400Bad Request
401Unauthorized
403Forbidden
500Internal Server Error
curl --request GET \
--url 'https://api.appgram.dev/api/v1/contact-forms/overview' \
--header 'x-api-key: <api-key>'const response = await fetch("https://api.appgram.dev/api/v1/contact-forms/overview", {
method: "GET",
headers: {
"x-api-key": "<api-key>"
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.text());
import requests
response = requests.request(
"GET",
"https://api.appgram.dev/api/v1/contact-forms/overview",
headers={"x-api-key": "<api-key>"},
timeout=30,
)
response.raise_for_status()
print(response.text)
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.appgram.dev/api/v1/contact-forms/overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import Foundation
var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/contact-forms/overview")!)
request.httpMethod = "GET"
request.setValue("<api-key>", forHTTPHeaderField: "x-api-key")
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
// Requires OkHttp 4.x.
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody
fun main() {
val request = Request.Builder()
.url("https://api.appgram.dev/api/v1/contact-forms/overview")
.method("GET", null)
.addHeader("x-api-key", "<api-key>")
.build()
OkHttpClient().newCall(request).execute().use { response ->
println(response.body?.string())
}
}
// Requires package:http in pubspec.yaml.
import 'package:http/http.dart' as http;
Future<void> main() async {
final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/contact-forms/overview"));
request.headers.addAll({
"x-api-key": "<api-key>",
});
final response = await request.send();
print(await response.stream.bytesToString());
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://api.appgram.dev/api/v1/contact-forms/overview"),
Headers =
{
{ "x-api-key", "<api-key>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}{
"data": {},
"success": true
}