logo
Events/Id

Get event

Retrieve a single event by its unique ID.

GET
/events/{id}

Authorization

x-kommunity-api-key<token>

In: header

Path Parameters

idRequiredstring

Unique identifier for the event

Response Body

Successfully retrieved event

TypeScript Definitions

Use the response body type in TypeScript.

successboolean
dataobject

Missing or invalid event ID

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring

Unauthorized - Invalid API key or permission

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring

Event not found or no permission

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring

Server error

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
errorRequiredstring
detailsstring
curl -X GET "/api/v1/events/string" \
  -H "x-kommunity-api-key: <token>"
fetch("/api/v1/events/string", {
  headers: {
    "x-kommunity-api-key": "<token>"
  }
})
package main

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

func main() {
  url := "/api/v1/events/string"

  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("x-kommunity-api-key", "<token>")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "/api/v1/events/string"

response = requests.request("GET", url, headers = {
  "x-kommunity-api-key": "<token>"
})

print(response.text)
{
  "success": true,
  "data": {
    "name": "string",
    "description": "string",
    "category": "string",
    "subcategory": "string",
    "hostName": "string",
    "attendeeLimit": 1,
    "country": "string",
    "street": "string",
    "city": "string",
    "state": "string",
    "zipCode": "string",
    "eventImg": "string",
    "startTime": "2019-08-24T14:15:22Z",
    "endTime": "2019-08-24T14:15:22Z",
    "timezone": "string",
    "email": "[email protected]",
    "phone": "string",
    "tickets": [
      {
        "id": "string",
        "name": "string",
        "price": 0
      }
    ],
    "joinUrl": "string",
    "questions": [
      {
        "id": "string",
        "question": "string",
        "required": true
      }
    ]
  }
}
{
  "success": false,
  "error": "string",
  "details": "string"
}
{
  "success": false,
  "error": "string",
  "details": "string"
}
{
  "success": false,
  "error": "string",
  "details": "string"
}
{
  "success": false,
  "error": "string",
  "details": "string"
}