{
  "info": {
    "_postman_id": "07ecc380-1bc3-4f00-8acb-568268eca12d",
    "name": "PostHog actions code API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T11:03:48.000Z",
    "updatedAt": "2026-07-28T11:03:48.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-07ecc380-1bc3-4f00-8acb-568268eca12d"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "code",
          "item": [
            {
              "name": "invites",
              "item": [
                {
                  "name": "check-access",
                  "item": [
                    {
                      "name": "Check access",
                      "id": "43d75c78-bf2e-4f52-94d7-562f01456e1d",
                      "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": "0ee03593-709a-4721-a105-355e8da12b6a",
                          "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:48.000Z",
                          "updatedAt": "2026-07-28T11:03:48.000Z",
                          "uid": "35240-0ee03593-709a-4721-a105-355e8da12b6a"
                        }
                      ],
                      "createdAt": "2026-07-28T11:03:48.000Z",
                      "updatedAt": "2026-07-28T11:03:48.000Z",
                      "uid": "35240-43d75c78-bf2e-4f52-94d7-562f01456e1d"
                    }
                  ],
                  "id": "bb410b4c-0031-42d0-8d1b-5f66bb3ba734",
                  "createdAt": "2026-07-28T11:03:48.000Z",
                  "updatedAt": "2026-07-28T11:03:48.000Z",
                  "uid": "35240-bb410b4c-0031-42d0-8d1b-5f66bb3ba734"
                },
                {
                  "name": "redeem",
                  "item": [
                    {
                      "name": "Redeem invite code",
                      "id": "aab7596a-2e3e-4f24-9c7a-0dd2f7781585",
                      "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": "4f1f628d-c6fa-45a4-85fd-a91dc1c64ffe",
                          "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:48.000Z",
                          "updatedAt": "2026-07-28T11:03:48.000Z",
                          "uid": "35240-4f1f628d-c6fa-45a4-85fd-a91dc1c64ffe"
                        },
                        {
                          "id": "677dbd3f-98a0-45f9-8d72-0e27d6866267",
                          "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:48.000Z",
                          "updatedAt": "2026-07-28T11:03:48.000Z",
                          "uid": "35240-677dbd3f-98a0-45f9-8d72-0e27d6866267"
                        }
                      ],
                      "createdAt": "2026-07-28T11:03:48.000Z",
                      "updatedAt": "2026-07-28T11:03:48.000Z",
                      "uid": "35240-aab7596a-2e3e-4f24-9c7a-0dd2f7781585"
                    }
                  ],
                  "id": "bfc1a1ac-00bc-446d-97db-20b4086ac4fd",
                  "createdAt": "2026-07-28T11:03:48.000Z",
                  "updatedAt": "2026-07-28T11:03:48.000Z",
                  "uid": "35240-bfc1a1ac-00bc-446d-97db-20b4086ac4fd"
                }
              ],
              "id": "9b766e1c-906b-48ad-9f65-d847f09be571",
              "createdAt": "2026-07-28T11:03:48.000Z",
              "updatedAt": "2026-07-28T11:03:48.000Z",
              "uid": "35240-9b766e1c-906b-48ad-9f65-d847f09be571"
            }
          ],
          "id": "2ec2d742-602b-4326-9212-62aaf8fdcd36",
          "createdAt": "2026-07-28T11:03:48.000Z",
          "updatedAt": "2026-07-28T11:03:48.000Z",
          "uid": "35240-2ec2d742-602b-4326-9212-62aaf8fdcd36"
        }
      ],
      "id": "dc4decbf-d460-4da9-a909-8670799c7ba3",
      "createdAt": "2026-07-28T11:03:48.000Z",
      "updatedAt": "2026-07-28T11:03:48.000Z",
      "uid": "35240-dc4decbf-d460-4da9-a909-8670799c7ba3"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "/"
    }
  ]
}