{"info":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","description":"<html><head></head><body><p>Snapbar Studio is a service that allows clients to collect and maintain headshot photos for their employees, guests, or users. The Admin API uses <a href=\"https://graphql.org/\">GraphQL</a> for communicating with the service. <strong>This documentation does not cover the full extent of API functionality</strong>. Fetch the GraphQL schema via introspection (see below) for a full list of queries, objects, and mutations.</p>\n<h1 id=\"overview\">Overview</h1>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>Every resource within the API is accessed through a single POST request to the following URL:</p>\n<p><code>https://headshots.snapbar.com/api/v1/graphql</code></p>\n<h2 id=\"authentication-and-authorization\">Authentication and Authorization</h2>\n<p>In order to access the API you must first obtain an access token. This can be accomplished by reaching out to your Account Manager at Snapbar. They will properly configure access scopes for authorization needs. Requests are made using the <code>Authorization</code> header while passing along to the token as <code>Bearer</code>. Example:</p>\n<p><code>Authorization: Bearer your-access-token</code></p>\n<h2 id=\"using-graphiql\">Using GraphiQL</h2>\n<p>The easiest way to explore the API is through our GraphiQL interface hosted at <a href=\"https://headshots.snapbar.com/graphiql\">https://headshots.snapbar.com/graphiql</a>. Note you'll need to authenticate with your Snapbar account and select an account before making queries.</p>\n<img src=\"https://content.pstmn.io/00cf6166-6a39-4d97-a2f2-a68661e7d4fe/U2NyZWVuc2hvdCAyMDIzLTExLTI4IGF0IDExLjM1LjM44oCvQU0ucG5n\">\n\n<h2 id=\"introspection\">Introspection</h2>\n<p>The examples provided in this document do not include every accessible object within the API. For a complete list, the API supports standard GraphQL <a href=\"https://graphql.org/learn/introspection/\">introspection</a>. We highly recommend syncing the schema into your tool of choice for exploring various queries and mutations, <a href=\"https://learning.postman.com/docs/sending-requests/graphql/graphql/#introspection-and-importing-graphql-schemas\">which is supported</a> by Postman.</p>\n<h1 id=\"pagination\">Pagination</h1>\n<p>A majority of the list type queries have the ability to paginate with a cursor-based Relay-style pagination system (<a href=\"https://relay.dev/graphql/connections.htm\">read more</a>). Those without the cursor argument output the full list of objects. A few of the list type queries also allow for sorting keys and sort direction. Those will be noted in the documentation for those queries.</p>\n<h2 id=\"polling-for-changes\">Polling for changes</h2>\n<p>Although it may be possible to filter by date, the more reliable way to poll for new nodes with a query is to use our cursor-based pagination method. You'll need a way to store the last processed cursor in some stateful store like a database or caching system. It's worth noting that cursors are not unique to the resource/node, but rather in relation to the query you've requested. In other words - if you change your query or sorting key by a non-stable field (e.g. <code>updatedAt</code>), the cursors for the resulting nodes are subject to change. It's best to sort by a key that isn't bound to change (e.g. <code>createdAt</code> or <code>submittedAt</code>).</p>\n<p>Let's look at an example to poll for newly accepted submissions.</p>\n<p>First, process all existing submissions:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-graphql\">query {\n  submissions(first: 50, state: ACCEPTED, sortDirection: ASC, sortBy: SUBMITTED_AT) {\n    edges {\n      node {\n        id\n      }\n      cursor\n    }\n    pageInfo {\n      hasNextPage\n      endCursor\n    }\n  }\n}\n\n</code></pre>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": {\n    \"submissions\": {\n      \"edges\": [\n        {\n          \"node\": {\n            \"id\": \"gid://holar/Submission/61983604ff402800015a8d9f\"\n          },\n          \"cursor\": \"MQ\"\n        },\n        ...\n        {\n          \"node\": {\n            \"id\": \"gid://holar/Submission/631f7bcb49dfcf00015ffb8e\"\n          },\n          \"cursor\": \"NTA\"\n        }\n      ],\n      \"pageInfo\": {\n        \"hasNextPage\": true,\n        \"endCursor\": \"NTA\"\n      }\n    }\n  }\n}\n\n</code></pre>\n<p>Store the <code>endCursor</code> in a data store (e.g. database / cache) for future queries. Get the next page, sending the <code>after</code> variable based on the <code>endCursor</code> value:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-graphql\">query {\n  submissions(after: \"NTA\", first: 50, state: ACCEPTED, sortDirection: ASC, sortBy: SUBMITTED_AT) {\n    edges {\n      node {\n        id\n      }\n      cursor\n    }\n    pageInfo {\n      hasNextPage\n      endCursor\n    }\n  }\n}\n\n</code></pre>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": {\n    \"submissions\": {\n      \"edges\": [\n        {\n          \"node\": {\n            \"id\": \"gid://holar/Submission/631f7bcb49dfcf00015lfb72\"\n          },\n          \"cursor\": \"QzR\"\n        }\n      ],\n      \"pageInfo\": {\n        \"hasNextPage\": false,\n        \"endCursor\": \"QzR\"\n      }\n    }\n  }\n}\n\n</code></pre>\n<p>Since <code>hasNextPage</code> is <code>false</code>, we know we've reached the end of the list. Continue polling (e.g. every hour/day) with <code>cursor</code> \"QzR\" until new results are found. When new submissions are accepted between polls, a new set of edges appear, resulting in a new <code>endCursor</code>. In this way we can process new submissions and avoid re-processing old ones.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Pagination","slug":"pagination"}],"owner":"23704631","collectionId":"d8a829e3-22d4-4482-ae77-e5edaae6c321","publishedId":"2s93JzKfFn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-17T21:00:58.000Z"},"item":[{"name":"Studio","item":[{"name":"Get Studio","id":"09ef7cb9-c8bb-4150-a8fd-bea24cafc58a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetStudio($id: GID!){\n    studio(id: $id){\n        id\n        name\n        handle\n        account {\n            id\n            snapbarId\n            name\n            organization\n            createdAt\n            updatedAt\n        }\n        adminAccessUrl\n        branding {\n            background {\n                ... on CloudFile {\n                    bytes\n                    provider\n                    providerId\n                    publicUrl\n                    type\n                }\n                ... on Color {\n                    hex\n                }\n            }\n            logo {\n                bytes\n                provider\n                providerId\n                publicUrl\n                type\n            }\n            primaryColor\n            secondaryColor\n            tertiaryColor\n        }\n        contactList {\n            id\n            contactsCount\n            name\n            createdAt\n            updatedAt\n        }\n        coordinator {\n            id\n            email\n            firstName\n            lastName\n            staff\n            snapbarId\n            createdAt\n            updatedAt\n        }\n        customAccessUrl\n        disclaimer {\n            content\n            enabled\n        }\n        formFields {\n            id\n            contactAttribute {\n                key\n                type\n                validation {\n                    id\n                    errorMessage\n                    regex\n                }\n                custom\n            }\n            label\n            required\n        }\n        startDate\n        endDate\n        galleryEnabled\n        locale\n        maxSubmissionsPerContact\n        originator {\n            id\n            email\n            firstName\n            lastName\n            staff\n            snapbarId\n            createdAt\n            updatedAt\n        }\n        photosCount\n        photosQuotaLimit\n        photosStoredSize\n        poses {\n            id\n            allowPhotoUpload\n            backdrops {\n                ... on CloudFile {\n                    bytes\n                    provider\n                    providerId\n                    publicUrl\n                    type\n                }\n                ... on Color {\n                    hex\n                }\n            }\n        }\n        publicUrl\n        reminderDuration\n        remindersEnabled\n        requireSubmissionReview\n        sharingPassword\n        sharingStatus\n        status\n        createdAt\n        updatedAt\n    }\n}","variables":"{\n    \"id\": \"{your-studio-id}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Get the details for a specific Studio.  </p>\n<p>Requires <code>headshots:studio:view</code> permissions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"09ef7cb9-c8bb-4150-a8fd-bea24cafc58a"},{"name":"List Studios","id":"c1b6b9d8-57f7-4475-9cf4-0df6ca15d2e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ListStudios($cursor: String){\n    studios(first:5, after: $cursor){\n        edges {\n            node {\n                id\n                name\n                handle\n            }\n            cursor\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n            hasPreviousPage\n            startCursor\n        }\n    }\n}","variables":"{\n    \"cursor\": \"{cursor}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Get a list of Studios. See <code>Get Studio</code> for the full studio object.</p>\n<p>Requires <code>headshots:studio:view</code> permissions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1b6b9d8-57f7-4475-9cf4-0df6ca15d2e5"},{"name":"Search Studios","id":"ec7505f4-22c3-4fee-9bfe-6d7d78cb9923","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query SearchStudios($query: String){\n    studios(first:5, query: $query){\n        edges {\n            node {\n                id\n                name\n                handle\n            }\n            cursor\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n            hasPreviousPage\n            startCursor\n        }\n    }\n}","variables":"{\n    \"query\": \"{your-studio-handle-or-name}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Search for a Studio. Search criteria is by studio handle or name, and the response will return back the best possible matches.</p>\n<p>Requires <code>headshots:studio:view</code> permissions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec7505f4-22c3-4fee-9bfe-6d7d78cb9923"},{"name":"Studio Exists","id":"3bc02ea7-e3ac-4025-b60e-d701b96db235","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query studioExists($handle: String!) {\n  studioExists(handle: $handle)\n}","variables":"{\n    \"handle\": \"{your-studio-handle}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Check if a Studio exists. Returns a boolean if a studio handle exists or not.</p>\n<p>No specific permissions are required.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3bc02ea7-e3ac-4025-b60e-d701b96db235"}],"id":"9e63e72e-e84f-40ed-a7b2-01e7335b5bdf","description":"<p>Account-level tokens only have the ability to read from the studio object. Only studios under the account are able to be found by the associated token. The studio object is expanded on the <code>GetStudio</code> query.</p>\n","_postman_id":"9e63e72e-e84f-40ed-a7b2-01e7335b5bdf","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}}},{"name":"Studio Session","item":[{"name":"Get Studio Sessions","id":"6a5cd2df-2fb4-46c5-9a28-4995080d341c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetStudioSession($studioHandle: String!, $accessSignature: String!){\n    studioSession(studioHandle: $studioHandle, accessSignature: $accessSignature) {\n        id\n        contact {\n            id\n            contactLists {\n                name\n            }\n            customAttributes\n            email\n            firstName\n            lastName\n            phone\n            submissions {\n                id\n                photos {\n                    id\n                    name\n                    appliedPresets {\n                        downloadUrl\n                        height\n                        width\n                        preset {\n                            id\n                            autoEnhance\n                            backdrop {\n                                ... on CloudFile {\n                                    bytes\n                                    provider\n                                    providerId\n                                    publicUrl\n                                    type\n                                }\n                                ... on Color {\n                                    hex\n                                }\n                            }\n                            cloudinaryTransform\n                            crop {\n                                factor\n                                gravity\n                            }\n                            default\n                            imageFormat\n                            name\n                            overlayImage {\n                                bytes\n                                provider\n                                providerId\n                                publicUrl\n                                type\n                            }\n                            photoFilter {\n                                id\n                                cloudinaryArtisticFilter\n                                cloudinaryTransform\n                                name\n                            }\n                            resize\n                            visibleToContact\n                            createdAt\n                            updatedAt\n                        }\n                        publicUrl\n                        size\n                    }\n                    pose {\n                        id\n                        allowPhotoUpload\n                        backdrops {\n                            ... on CloudFile {\n                                bytes\n                                provider\n                                providerId\n                                publicUrl\n                                type\n                            }\n                            ... on Color {\n                                hex\n                            }\n                        }\n                        guidelines\n                        name\n                        presets {\n                            id\n                            name\n                        }\n                        removeBackground\n                    }\n                }\n                state\n                studio {\n                    id\n                    name\n                    handle\n                }\n                submittedAt\n                createdAt\n                updatedAt\n            }\n            submissionsCount\n            createdAt\n            updatedAt\n        }\n        closedAt\n        invitedAt\n        studio {\n            id\n            name\n            handle\n        }\n        submission {\n            id\n            state\n            submittedAt\n            createdAt\n            updatedAt\n        }\n        createdAt\n        updatedAt\n    }\n}","variables":"{\n    \"studioHandle\": \"{your-studio-handle}\",\n    \"accessSignature\": \"{session-access-signature}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:studiosession:view</code> scope</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a5cd2df-2fb4-46c5-9a28-4995080d341c"},{"name":"Create Studio Session","id":"3b514d98-382c-4577-bb15-7fcbfcf36c83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateStudioSession($input: CreateStudioSessionInput!){\n    createStudioSession(input: $input){\n        studioSession {\n            id\n            email\n            contact {\n                email\n                firstName\n                lastName\n            }\n        }\n        errors {\n            path\n            message\n        }\n    }\n}","variables":"{\n    \"studioId\": \"{your-studio-id}\",\n    \"email\": \"{email-for-studio-session}\",\n    \"studioUrl\": \"{optional-studio-access-url}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:studiosession:add</code> scope. <code>studioId</code> and <code>email</code> are required fields. <code>studioUrl</code> is the URL of the studio to be accessed. Default is the global studio URL.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b514d98-382c-4577-bb15-7fcbfcf36c83"},{"name":"Delete Studio Session","id":"d58ed641-d1f5-4819-897a-5a2c8dd3f1a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteStudioSessions($input: DeleteStudioSessionsInput!){\n    deleteStudioSessions(input: $input) {\n        deletedIds\n        errors {\n            path\n            message\n        }\n    }\n}","variables":"{\n    \"input\": {\n        \"ids\": [\"{session-id-to-delete}\"]\n    }\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:studiosession:delete</code> scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d58ed641-d1f5-4819-897a-5a2c8dd3f1a8"}],"id":"654ecf6e-468e-4e31-8817-c3d1978f34c9","_postman_id":"654ecf6e-468e-4e31-8817-c3d1978f34c9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}}},{"name":"Preset","item":[{"name":"Get Preset","id":"da9e0b97-a93b-4901-b01b-8e53343bbbbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetPreset($id: GID!){\n    preset(id: $id){\n        id\n        autoEnhance\n        backdrop {\n            ... on CloudFile {\n                bytes\n                provider\n                providerId\n                publicUrl\n                type\n            }\n            ... on Color {\n                hex\n            }\n        }\n        cloudinaryTransform\n        crop {\n            factor\n            gravity\n        }\n        default\n        imageFormat\n        name\n        overlayImage {\n            bytes\n            provider\n            providerId\n            publicUrl\n            type\n        }\n        photoFilter {\n            id\n            cloudinaryArtisticFilter\n            cloudinaryTransform\n            name\n        }\n        resize\n        visibleToContact\n        createdAt\n        updatedAt\n    }\n}","variables":"{\n    \"id\": \"{your-preset-id}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:preset:view</code> scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"da9e0b97-a93b-4901-b01b-8e53343bbbbe"},{"name":"List Presets","id":"80b9e43d-5b64-4888-9067-101a33d99ab1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ListPresets{\n    presets {\n        id\n        name\n    }\n}","variables":""}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:preset:view</code> scope. Does not filter and/or paginate</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"80b9e43d-5b64-4888-9067-101a33d99ab1"}],"id":"4b3f8177-076a-44c3-ab68-1a6d53c0acff","_postman_id":"4b3f8177-076a-44c3-ab68-1a6d53c0acff","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}}},{"name":"Contact","item":[{"name":"Get Contact","id":"18784fb2-6323-4889-8358-e18d10ebd3b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetContact($id: GID!){\n    contact(id: $id){\n        id\n        contactLists {\n            name\n        }\n        customAttributes\n        email\n        firstName\n        lastName\n        phone\n        submissions {\n            id\n            photos {\n                id\n                name\n                appliedPresets {\n                    downloadUrl\n                    height\n                    width\n                    preset {\n                        id\n                        autoEnhance\n                        backdrop {\n                            ... on CloudFile {\n                                bytes\n                                provider\n                                providerId\n                                publicUrl\n                                type\n                            }\n                            ... on Color {\n                                hex\n                            }\n                        }\n                        cloudinaryTransform\n                        crop {\n                            factor\n                            gravity\n                        }\n                        default\n                        imageFormat\n                        name\n                        overlayImage {\n                            bytes\n                            provider\n                            providerId\n                            publicUrl\n                            type\n                        }\n                        photoFilter {\n                            id\n                            cloudinaryArtisticFilter\n                            cloudinaryTransform\n                            name\n                        }\n                        resize\n                        visibleToContact\n                        createdAt\n                        updatedAt\n                    }\n                    publicUrl\n                    size\n                }\n                pose {\n                    id\n                    allowPhotoUpload\n                    backdrops {\n                        ... on CloudFile {\n                            bytes\n                            provider\n                            providerId\n                            publicUrl\n                            type\n                        }\n                        ... on Color {\n                            hex\n                        }\n                    }\n                    guidelines\n                    name\n                    presets {\n                        id\n                        name\n                    }\n                    removeBackground\n                }\n            }\n            state\n            studio {\n                id\n                name\n                handle\n            }\n            submittedAt\n            createdAt\n            updatedAt\n        }\n        submissionsCount\n        createdAt\n        updatedAt\n    }\n}","variables":"{\n    \"id\": \"{your-contact-id}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:view</code> scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"18784fb2-6323-4889-8358-e18d10ebd3b6"},{"name":"Get Contact Attributes","id":"50ac2a23-0b6e-4de6-a555-9f1622a46861","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetContactAttributes{\n    contactAttributes{\n        custom\n        key\n        type\n        validation {\n            errorMessage\n            regex\n        }\n        createdAt\n        updatedAt\n    }\n}","variables":""}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Returns the contact attributes for the account the token is associated with.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"50ac2a23-0b6e-4de6-a555-9f1622a46861"},{"name":"List Contacts","id":"8b5a4d6b-d8dc-4a94-90d8-e137b8908cff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ListContacts($cursor: String){\n    contactItems(first:5, after: $cursor) {\n        edges {\n            node {\n                id\n                email\n                firstName\n                lastName\n            }\n            cursor\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n            hasPreviousPage\n            startCursor\n        }\n    }\n}","variables":"{\n    \"cursor\": null\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:view</code> scope. Allows for <code>sortBy</code> on the following values <code>FIRST_NAME</code>, <code>LAST_NAME</code>, <code>EMAIL</code>, <code>CREATED_AT</code>, <code>UPDATED_AT</code>, and <code>SUBMISSIONS_COUNT</code>. Allows for <code>sortDirection</code> with<code>ASC and DESC</code>.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b5a4d6b-d8dc-4a94-90d8-e137b8908cff"},{"name":"List Contacts From Contact List","id":"c04d8fe3-6a2a-465f-87ba-470d7327beeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ListContactsFromContactList($contactListId: GID!){\n    contactItems(first:5, contactListId: $contactListId) {\n        edges {\n            node {\n                id\n                email\n                firstName\n                lastName\n            }\n            cursor\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n            hasPreviousPage\n            startCursor\n        }\n    }\n}","variables":"{\n    \"contactListId\": \"{contact-list-id}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>This is the same query as <code>List Contacts</code> but is demonstrating the ability to only return contacts from a specific contact list.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c04d8fe3-6a2a-465f-87ba-470d7327beeb"},{"name":"Search Contacts","id":"ff6f9ade-6e01-43e4-a50c-b06ef3a46ca4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query SearchContacts($search: String!){\n    contactItems(first:5, query: $search) {\n        edges {\n            node {\n                id\n                email\n                firstName\n                lastName\n                phone\n            }\n            cursor\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n            hasPreviousPage\n            startCursor\n        }\n    }\n}","variables":"{\n    \"search\": \"{firstName-lastName-or-email}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:view</code> scope. Search for a contact by first name, last name, or email.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff6f9ade-6e01-43e4-a50c-b06ef3a46ca4"},{"name":"Create Contact","id":"3a7c40c1-e9dc-4729-8077-add074aee9db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateContact($input: CreateContactInput!){\n    createContact(input: $input){\n        contact {\n            id\n            firstName\n            lastName\n            email\n        }\n        errors {\n            path\n            message\n        }\n    }\n}","variables":"{\n    \"input\": {\n        \"firstName\": \"{contact-first-name}\",\n        \"lastName\": \"{contact-last-name}\",\n        \"email\": \"{contact-email}\",\n        \"phone\": \"{contact-phone}\",\n        \"contactListIds\": [\"{contact-list-id}\"],\n        \"customAttributes\": {\n            \"{example-custom-attribute}\": \"{example value}\"\n        }\n    }\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:add</code> scope. The field <code>customAttributes</code> is key-value pairs for existing custom contact attributes.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a7c40c1-e9dc-4729-8077-add074aee9db"},{"name":"Create Contact Access URL","id":"ab5bea7c-894e-4d4b-9cf9-c4abb76c41ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateContactAccessUrl($input: CreateContactAccessURLInput!) {\n    createContactAccessUrl(input: $input) {\n        accessUrl\n        errors {\n            message\n            path\n        }\n    }\n}\n","variables":"{\n    \"input\": {\n        \"id\": \"{studioId}\",\n        \"contactId\": \"{contactId}\"\n    }\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:add</code> scope. This mutation exists for the use case of sending your own invitation emails. The access URL does not expire so long as the contact and stuiod exist.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab5bea7c-894e-4d4b-9cf9-c4abb76c41ed"},{"name":"Get Contact List","id":"40011223-60c0-4e46-9617-51b2b905fec1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetContactList($id: GID!) {\n    contactList(id: $id) {\n        id\n        contactsCount\n        name\n        createdAt\n        updatedAt\n    }\n}","variables":"{\n    \"id\": \"{contact-list-id}\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:view</code> scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"40011223-60c0-4e46-9617-51b2b905fec1"},{"name":"Get Contact Lists","id":"99819d94-0a8c-4126-9f3c-981eaf3eb45c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ListContactLists {\n    contactLists{\n        id\n        contactsCount\n        name\n        createdAt\n        updatedAt\n    }\n}","variables":""}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:view</code> scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"99819d94-0a8c-4126-9f3c-981eaf3eb45c"},{"name":"Create Contact List","id":"2abe9f65-9a75-42ea-a9ee-38f7e50113c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateContactList($input: CreateContactListInput!){\n    createContactList(input: $input) {\n        contactList {\n            id\n            name\n        }\n        errors {\n            path\n            message\n        }\n    }\n}","variables":"\n{\n    \"input\": {\n        \"name\": \"{contact-list-name}\"\n    }\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:contact:add</code> scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2abe9f65-9a75-42ea-a9ee-38f7e50113c4"},{"name":"Invite Contact","id":"473b3129-113c-4b7f-84a9-c8929de33315","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteContacts($input: InviteContactsInput!) {\n    inviteContacts(input: $input){\n        contacts {\n            id\n            firstName\n            lastName\n            email\n        }\n        errors {\n            path\n            message\n        }\n    }\n}","variables":"{\n    \"input\": {\n        \"studioId\": \"{your-studio-id}\",\n        \"emails\": [\n            \"test1@email.com\",\n            \"test2@email.com\"\n        ]\n    }\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:studiosession:add</code>scope. New contact records will be created if an email given does not match a current contact.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"473b3129-113c-4b7f-84a9-c8929de33315"},{"name":"Invite Contact List","id":"56eee580-2e9f-4b57-b863-9cef7fca2608","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteContactList($input: InviteContactListInput!) {\n    inviteContactList(input: $input){\n        contactList {\n            id\n            name\n        }\n        errors {\n            path\n            message\n        }\n    }\n}","variables":"{\n    \"input\": {\n        \"studioId\": \"{your-studio-id}\",\n        \"contactListId\": \"{contact-list-id}\"\n    }\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:studiosession:add</code>scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"56eee580-2e9f-4b57-b863-9cef7fca2608"}],"id":"08eda120-0fe3-4e2b-805c-15637a734aa3","_postman_id":"08eda120-0fe3-4e2b-805c-15637a734aa3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}}},{"name":"Submission","item":[{"name":"List Submissions","id":"a8229714-643c-42b3-91fd-5c64f8950c9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ListSubmissions($studioIds: [GID!]!, $submissionState: SubmissionState, $cursor: String) {\n    submissions(studioIds: $studioIds, state: $submissionState, first: 5, after: $cursor){\n        edges {\n            node {\n                id\n                contact {\n                    id\n                    email\n                    firstName\n                    lastName\n                    phone\n                }\n                photos {\n                    appliedPresets {\n                      preset {\n                        name\n                      }\n                      downloadUrl\n                    }\n                }\n                state\n                submittedAt\n            }\n            cursor\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n            hasPreviousPage\n            startCursor\n        }\n        totalCount\n    }\n}","variables":"{\n    \"studioIds\": [\"{your-studio-id}\"],\n    \"state\": \"REVIEW\", //REVIEW, ACCEPTED, REJECTED\n    \"cursor\": \"\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:submission:view</code>scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8229714-643c-42b3-91fd-5c64f8950c9f"},{"name":"Submissions after submitted_at datetime","id":"47aa36c1-fd43-41fd-94fa-d96a3e2f8bc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query ListSubmissions($studioIds: [GID!]!, $submissionState: SubmissionState, $after: DateTime, $cursor: String) {\n    submissions(studioIds: $studioIds, state: $submissionState, submittedAfter: $after, first: 5, after: $cursor){\n        edges {\n            node {\n                id\n                contact {\n                    id\n                    email\n                    firstName\n                    lastName\n                    phone\n                }\n                photos {\n                    id\n                    name\n                    file {\n                        bytes\n                        provider\n                        providerId\n                        publicUrl\n                        type\n                    }\n                    backdrop {\n                        ... on CloudFile {\n                            bytes\n                            provider\n                            providerId\n                            publicUrl\n                            type\n                        }\n                        ... on Color {\n                            hex\n                        }\n                    }\n                }\n                state\n                studio {\n                    id\n                    name\n                    handle\n                }\n                submittedAt\n                createdAt\n                updatedAt\n            }\n            cursor\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n            hasPreviousPage\n            startCursor\n        }\n        totalCount\n    }\n}","variables":"{\n    \"studioIds\": [\"{your-studio-id}\"],\n    \"state\": \"REVIEW\", //REVIEW, ACCEPTED, REJECTED\n    \"cursor\": \"\",\n    \"after\": \"2023-06-02T10:15:30Z\"\n}"}},"url":"https://headshots.snapbar.com/api/v1/graphql","description":"<p>Requires <code>headshots:submission:view</code>scope.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","graphql"],"host":["headshots","snapbar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"47aa36c1-fd43-41fd-94fa-d96a3e2f8bc8"}],"id":"6900a86d-fbad-4568-b8e3-8bea0edfddda","description":"<p>The values for <code>downloadUrl</code> and <code>publicUrl</code> are temporary asset URLs that expire after 1 hour. Do not use these URLs for long-term external reference.</p>\n","_postman_id":"6900a86d-fbad-4568-b8e3-8bea0edfddda","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}}},{"name":"New Request","id":"2c355918-6d66-44c1-a706-da468a32bd83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","id":"d8a829e3-22d4-4482-ae77-e5edaae6c321","name":"Snapbar Studio Admin API (Private BETA)","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"2c355918-6d66-44c1-a706-da468a32bd83"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]}},"event":[{"listen":"prerequest","script":{"id":"26ab7b3e-60c8-4339-9a78-a6cf667ccf50","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7f87548a-dee1-4fb1-bc12-caf5687cde86","type":"text/javascript","exec":[""]}}]}