1"use strict";(self.webpackChunkpartners=self.webpackChunkpartners||[]).push([[29690],{15680:(e,t,n)=>{n.d(t,{xA:()=>p,yg:()=>f});var r=n(96540);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),l=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},p=function(e){var t=l(e.components);return r.createElement(c.Provider,{value:t},e.children)},u="mdxType",y={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),u=l(n),d=o,f=u["".concat(c,".").concat(d)]||u[d]||y[d]||a;return n?r.createElement(f,s(s({ref:t},p),{},{components:n})):r.createElement(f,s({ref:t},p))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,s=new Array(a);s[0]=d;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[u]="string"==typeof e?e:o,s[1]=i;for(var l=2;l<a;l++)s[l]=n[l];return r.createElement.apply(null,s)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},45583:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>y,frontMatter:()=>a,metadata:()=>i,toc:()=>l});var r=n(58168),o=(n(96540),n(15680));const a={title:"API Tokens"},s=void 0,i={unversionedId:"docs/user-interface/settings/api-tokens",id:"docs/user-interface/settings/api-tokens",title:"API Tokens",description:"This screen helps you copy and re-generate your API tokens. There are two types of API tokens you can use:",source:"@site/docs/docs/user-interface/settings/api-tokens.md",sourceDirName:"docs/user-interface/settings",slug:"/docs/user-interface/settings/api-tokens",permalink:"/docs/user-interface/settings/api-tokens",draft:!1,editUrl:"https://github.com/pactflow/docs.pactflow.io/edit/master/website/docs/docs/user-interface/settings/api-tokens.md",tags:[],version:"current",lastUpdatedBy:"Matt Fellows",lastUpdatedAt:1720513025,formattedLastUpdatedAt:"Jul 9, 2024",frontMatter:{title:"API Tokens"},sidebar:"docs",previous:{title:"Bi-Directional Contract Testing",permalink:"/docs/user-interface/bi-directional"},next:{title:"Preferences",permalink:"/docs/user-interface/settings/preferences"}},c={},l=[{value:"System Accounts",id:"system-accounts",level:2}],p={toc:l},u="wrapper";function y(e){let{components:t,...a}=e;return(0,o.yg)(u,(0,r.A)({},p,a,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("p",null,"This screen helps you copy and re-generate your API tokens. There are two types of API tokens you can use:"),(0,o.yg)("p",null,(0,o.yg)("img",{alt:"API Token Screen",src:n(70996).A,width:"3840",height:"1936"})),(0,o.yg)("ol",null,(0,o.yg)("li",{parentName:"ol"},(0,o.yg)("p",{parentName:"li"},"The read only token for anything that needs to download pacts. It should be used for a developer's machine.")),(0,o.yg)("li",{parentName:"ol"},(0,o.yg)("p",{parentName:"li"},"The read-write token for anything required to publish pact files or verification results. It should only be used by your CI when publishing pacts and verification results."))),(0,o.yg)("p",null,(0,o.yg)("strong",{parentName:"p"},"Buttons")),(0,o.yg)("ol",null,(0,o.yg)("li",{parentName:"ol"},"The Copy button allows you to copy the token values without displaying them."),(0,o.yg)("li",{parentName:"ol"},"You can also copy the value as",(0,o.yg)("ol",{parentName:"li"},(0,o.yg)("li",{parentName:"ol"},"unix formatted environment variables"),(0,o.yg)("li",{parentName:"ol"},"Windows formatted environment variables"),(0,o.yg)("li",{parentName:"ol"},"PowerShell formatted environment variables"),(0,o.yg)("li",{parentName:"ol"},"cURL requests"),(0,o.yg)("li",{parentName:"ol"},"fetch requests"))),(0,o.yg)("li",{parentName:"ol"},"The Regenerate button allows you to generate a new value for that token. ")),(0,o.yg)("h2",{id:"system-accounts"},"System Accounts"),(0,o.yg)("p",null,"You can also access the API tokens for any System Accounts for which you have access. To see the tokens, you will need the appropriate ",(0,o.yg)("inlineCode",{parentName:"p"},"system_account:manage")," or ",(0,o.yg)("inlineCode",{parentName:"p"},"system_account:read")," ",(0,o.yg)("a",{parentName:"p",href:"/docs/permissions/"},"permissions"),"."),(0,o.yg)("p",null,(0,o.yg)("img",{alt:"API Token Screen",src:n(15570).A,width:"3000",height:"1936"})))}y.isMDXComponent=!0},70996:(e,t,n)=>{n.d(t,{A:()=>r});
1const r=n.p+"assets/images/settings-tokens-user-11b5f81bbbc8fb70e7c4be849f77dce1.png"},15570:(e,t,n)=>{n.d(t,{A:()=>r});const r=n.p+"assets/images/settings-tokens-0cea1c6d5547a51d37b95c5a234fcfdb.png"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.