{
  "info": {
    "_postman_id": "1a87871c-04bb-467c-ad6c-af3967c9eab3",
    "name": "PostHog actions code-invites API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T11:03:49.000Z",
    "updatedAt": "2026-07-28T11:03:49.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-1a87871c-04bb-467c-ad6c-af3967c9eab3"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "code",
          "item": [
            {
              "name": "invites",
              "item": [
                {
                  "name": "check-access",
                  "item": [
                    {
                      "name": "Check access",
                      "id": "5c8cbe24-3f47-4bb4-a338-db70b6a490b5",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                          "raw": "{{baseUrl}}/api/code/invites/check-access/",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "api",
                            "code",
                            "invites",
                            "check-access",
                            ""
                          ]
                        },
                        "description": "Check whether the authenticated user has access to PostHog Code."
                      },
                      "response": [
                        {
                          "id": "cc3943e1-765a-456d-8f07-1b7402b1a0b1",
                          "name": "Access check result",
                          "originalRequest": {
                            "method": "GET",
                            "header": [],
                            "url": {
                              "raw": "{{baseUrl}}/api/code/invites/check-access/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "code",
                                "invites",
                                "check-access",
                                ""
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T11:03:49.000Z",
                          "updatedAt": "2026-07-28T11:03:49.000Z",
                          "uid": "35240-cc3943e1-765a-456d-8f07-1b7402b1a0b1"
                        }
                      ],
                      "createdAt": "2026-07-28T11:03:49.000Z",
                      "updatedAt": "2026-07-28T11:03:49.000Z",
                      "uid": "35240-5c8cbe24-3f47-4bb4-a338-db70b6a490b5"
                    }
                  ],
                  "id": "c8b78706-a7e2-4a35-a553-cd26a4c54edc",
                  "createdAt": "2026-07-28T11:03:49.000Z",
                  "updatedAt": "2026-07-28T11:03:49.000Z",
                  "uid": "35240-c8b78706-a7e2-4a35-a553-cd26a4c54edc"
                },
                {
                  "name": "redeem",
                  "item": [
                    {
                      "name": "Redeem invite code",
                      "id": "404210a1-51c3-4390-97fd-1cf51e5b30c8",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"code\": \"<string>\"\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/api/code/invites/redeem/",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "api",
                            "code",
                            "invites",
                            "redeem",
                            ""
                          ]
                        },
                        "description": "Redeem a PostHog Code invite code to enable access."
                      },
                      "response": [
                        {
                          "id": "4bcacde7-f462-4796-b04f-a1439ef85120",
                          "name": "Invite code redeemed successfully",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"code\": \"<string>\"\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/code/invites/redeem/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "code",
                                "invites",
                                "redeem",
                                ""
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T11:03:49.000Z",
                          "updatedAt": "2026-07-28T11:03:49.000Z",
                          "uid": "35240-4bcacde7-f462-4796-b04f-a1439ef85120"
                        },
                        {
                          "id": "f5cd3e14-7e4a-4e2d-b2af-b570ab3f9b45",
                          "name": "Invalid or expired invite code",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"code\": \"<string>\"\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/code/invites/redeem/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "code",
                                "invites",
                                "redeem",
                                ""
                              ]
                            }
                          },
                          "status": "Bad Request",
                          "code": 400,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"error\": \"<string>\"\n}",
                          "createdAt": "2026-07-28T11:03:49.000Z",
                          "updatedAt": "2026-07-28T11:03:49.000Z",
                          "uid": "35240-f5cd3e14-7e4a-4e2d-b2af-b570ab3f9b45"
                        }
                      ],
                      "createdAt": "2026-07-28T11:03:49.000Z",
                      "updatedAt": "2026-07-28T11:03:49.000Z",
                      "uid": "35240-404210a1-51c3-4390-97fd-1cf51e5b30c8"
                    }
                  ],
                  "id": "ac77bb41-b1ad-48fb-a38f-8af09c47b3ca",
                  "createdAt": "2026-07-28T11:03:49.000Z",
                  "updatedAt": "2026-07-28T11:03:49.000Z",
                  "uid": "35240-ac77bb41-b1ad-48fb-a38f-8af09c47b3ca"
                }
              ],
              "id": "33d73e88-ec70-4d4c-828f-11ee24084982",
              "createdAt": "2026-07-28T11:03:49.000Z",
              "updatedAt": "2026-07-28T11:03:49.000Z",
              "uid": "35240-33d73e88-ec70-4d4c-828f-11ee24084982"
            }
          ],
          "id": "2676b4ed-4211-43bf-996a-d5b2368474d4",
          "createdAt": "2026-07-28T11:03:49.000Z",
          "updatedAt": "2026-07-28T11:03:49.000Z",
          "uid": "35240-2676b4ed-4211-43bf-996a-d5b2368474d4"
        }
      ],
      "id": "8041846c-eff2-4861-992c-d4996aa56c9f",
      "createdAt": "2026-07-28T11:03:49.000Z",
      "updatedAt": "2026-07-28T11:03:49.000Z",
      "uid": "35240-8041846c-eff2-4861-992c-d4996aa56c9f"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "/"
    }
  ]
}