api-tokens
Bealach Na píosaí ar freagra iomlán iad seachas cuid de fhreagra.
Leathanach na gcomharthaí API: an nochtadh aon uaire, an fhoirm chruthaithe, an liosta agus na cnaipí cúlghairme.
Tá gach sampla beo, ach ní théann a naisc áit ar bith. Taispeánann HTML an marcáil le cóipeáil.
Ceithre chomhartha, dhá cheann acu beo
Postálann na foirmeacha cúlghairme chuig /tokens/revoke, /tokens/revoke-agent agus /tokens/revoke-all, faoi chonair an leathanaigh féin. Dírigh iad ar cibé áit a láimhseálann d'aip iad.
<div rst-tokens >
<section rst-box >
<form rst-form method ="post" action ="/tokens" >
<div rst-field >
<label rst-field-label for ="agent" >Ainm an ghníomhaire</label >
<input rst-input type ="text" id ="agent" name ="agent" maxlength ="40" >
</div >
<label rst-switch >
<input type ="checkbox" name ="for_self" value ="on" >
<span rst-switch-track aria-hidden ="true" ></span >
Is domsa an comhartha seo, ní do ghníomhaire
</label >
<fieldset rst-choice >
<legend >Rochtain</legend >
<div rst-choice-cards >
<label >
<input type ="radio" name ="access" value ="write" checked >
<span >
<span rst-choice-title >Léamh agus scríobh</span >
</span >
</label >
<label >
<input type ="radio" name ="access" value ="read" >
<span >
<span rst-choice-title >Léamh amháin</span >
</span >
</label >
</div >
</fieldset >
<div rst-field >
<label rst-field-label for ="expiry" >In éag ar</label >
<select rst-input ="short" id ="expiry" name ="expiry" >
<option value ="30" >30 lá</option >
<option value ="90" selected >90 lá</option >
<option value ="365" >1 bhliain</option >
<option value ="never" >Choíche</option >
</select >
</div >
<div rst-form-foot >
<button rst-btn ="primary lg" type ="submit" >Cruthaigh comhartha</button >
</div >
</form >
</section >
<div rst-card rst-tokens-list role ="table" aria-label ="Comharthaí" >
<div rst-lrow ="head" role ="row" >
<span role ="columnheader" >Comhartha</span >
<span class ="rst-m-hide" role ="columnheader" >Rochtain</span >
<span class ="rst-m-hide" role ="columnheader" >Cruthaithe</span >
<span class ="rst-m-hide" role ="columnheader" >Úsáid dheireanach</span >
<span class ="rst-m-hide" role ="columnheader" >In éag ar</span >
<span role ="columnheader" ><span class ="rst-sr-only" >Stádas</span ></span >
<span role ="columnheader" ><span class ="rst-sr-only" >Gníomhartha</span ></span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Claude ar son Grace Hopper</span >
<small >
<code >k3Jx9QpL2mWa</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh agus scríobh</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ><time datetime ="2026-08-11" >2026-08-11</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span ><time datetime ="2026-10-31" >2026-10-31</time ></span >
<span rst-tokens-state role ="cell" ></span >
<span role ="cell" >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Gníomhartha do Claude ar son Grace Hopper" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<form method ="post" action ="/tokens/revoke" >
<input type ="hidden" name ="id" value ="k3Jx9QpL2mWa" >
<button type ="submit" >Cúlghair</button >
</form >
</div >
</details >
</span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Grace Hopper</span >
<small >
<code >Qm2vR8sT4xYb</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh amháin</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span >Choíche</span >
<span rst-tokens-state role ="cell" ></span >
<span role ="cell" >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Gníomhartha do Grace Hopper" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<form method ="post" action ="/tokens/revoke" >
<input type ="hidden" name ="id" value ="Qm2vR8sT4xYb" >
<button type ="submit" >Cúlghair</button >
</form >
</div >
</details >
</span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Codex ar son Grace Hopper</span >
<small >
<code >Zp7wN1cH6kLd</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh agus scríobh</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span >Choíche</span >
<span rst-tokens-state role ="cell" ><span rst-status rst-tone ="neutral" >Cúlghairthe</span ></span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Iompórtáil oíche ar son Grace Hopper</span >
<small >
<code >Vb4tG9yK3nMe</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh amháin</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span ><time datetime ="2026-08-11" >2026-08-11</time ></span >
<span rst-tokens-state role ="cell" ><span rst-status rst-tone ="warning" >Imithe in éag</span ></span >
</div >
</div >
<div rst-tokens-revoke >
<form method ="post" action ="/tokens/revoke-agent" >
<input type ="hidden" name ="agent" value ="Claude" >
<button rst-btn type ="submit" >Cúlghair gach ceann don ghníomhaire seo: Claude</button >
</form >
<form method ="post" action ="/tokens/revoke-all" >
<button rst-btn ="danger" type ="submit" >Cúlghair gach comhartha</button >
</form >
</div >
</div >
In aip, shroichfeadh sé seo /tokens, /tokens/revoke, /tokens/revoke-agent, /tokens/revoke-all. Anseo ní théann a naisc ná a fhoirmeacha áit ar bith.
Díreach cruthaithe: an rún, taispeánta uair amháin
Taispeáin é seo sa fhreagra ar an bhfoirm chruthaithe féin, agus ná hatreoraigh é: tá an rún sa fhreagra sin amháin.
<div rst-tokens >
<div rst-callout rst-tone ="positive" tabindex ="-1" autofocus >
<span rst-callout-ic aria-hidden ="true" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="10" /><path d ="m9 12 2 2 4-4" /></svg >
</span >
<div rst-callout-body >
<strong >Cóipeáil an comhartha seo anois. Ní thaispeánfar arís é.</strong >
<p >
<code rst-tokens-secret >harbour_k3Jx9QpL2mWa_6bD2qK9xWz4rT8vN1mP3sL7yF5hJ0cG2aE4uB</code >
</p >
</div >
</div >
<section rst-box >
<form rst-form method ="post" action ="/tokens" >
<div rst-field >
<label rst-field-label for ="agent" >Ainm an ghníomhaire</label >
<input rst-input type ="text" id ="agent" name ="agent" maxlength ="40" >
</div >
<label rst-switch >
<input type ="checkbox" name ="for_self" value ="on" >
<span rst-switch-track aria-hidden ="true" ></span >
Is domsa an comhartha seo, ní do ghníomhaire
</label >
<fieldset rst-choice >
<legend >Rochtain</legend >
<div rst-choice-cards >
<label >
<input type ="radio" name ="access" value ="write" checked >
<span >
<span rst-choice-title >Léamh agus scríobh</span >
</span >
</label >
<label >
<input type ="radio" name ="access" value ="read" >
<span >
<span rst-choice-title >Léamh amháin</span >
</span >
</label >
</div >
</fieldset >
<div rst-field >
<label rst-field-label for ="expiry" >In éag ar</label >
<select rst-input ="short" id ="expiry" name ="expiry" >
<option value ="30" >30 lá</option >
<option value ="90" selected >90 lá</option >
<option value ="365" >1 bhliain</option >
<option value ="never" >Choíche</option >
</select >
</div >
<div rst-form-foot >
<button rst-btn ="primary lg" type ="submit" >Cruthaigh comhartha</button >
</div >
</form >
</section >
<div rst-card rst-tokens-list role ="table" aria-label ="Comharthaí" >
<div rst-lrow ="head" role ="row" >
<span role ="columnheader" >Comhartha</span >
<span class ="rst-m-hide" role ="columnheader" >Rochtain</span >
<span class ="rst-m-hide" role ="columnheader" >Cruthaithe</span >
<span class ="rst-m-hide" role ="columnheader" >Úsáid dheireanach</span >
<span class ="rst-m-hide" role ="columnheader" >In éag ar</span >
<span role ="columnheader" ><span class ="rst-sr-only" >Stádas</span ></span >
<span role ="columnheader" ><span class ="rst-sr-only" >Gníomhartha</span ></span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Claude ar son Grace Hopper</span >
<small >
<code >k3Jx9QpL2mWa</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh agus scríobh</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ><time datetime ="2026-08-11" >2026-08-11</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span ><time datetime ="2026-10-31" >2026-10-31</time ></span >
<span rst-tokens-state role ="cell" ></span >
<span role ="cell" >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Gníomhartha do Claude ar son Grace Hopper" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<form method ="post" action ="/tokens/revoke" >
<input type ="hidden" name ="id" value ="k3Jx9QpL2mWa" >
<button type ="submit" >Cúlghair</button >
</form >
</div >
</details >
</span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Grace Hopper</span >
<small >
<code >Qm2vR8sT4xYb</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh amháin</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span >Choíche</span >
<span rst-tokens-state role ="cell" ></span >
<span role ="cell" >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Gníomhartha do Grace Hopper" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<form method ="post" action ="/tokens/revoke" >
<input type ="hidden" name ="id" value ="Qm2vR8sT4xYb" >
<button type ="submit" >Cúlghair</button >
</form >
</div >
</details >
</span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Codex ar son Grace Hopper</span >
<small >
<code >Zp7wN1cH6kLd</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh agus scríobh</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span >Choíche</span >
<span rst-tokens-state role ="cell" ><span rst-status rst-tone ="neutral" >Cúlghairthe</span ></span >
</div >
<div rst-lrow role ="row" >
<span class ="rst-nm" role ="rowheader" ><span rst-actor >Iompórtáil oíche ar son Grace Hopper</span >
<small >
<code >Vb4tG9yK3nMe</code >
</small >
</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Rochtain</span >Léamh amháin</span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Cruthaithe</span ><time datetime ="2026-08-02" >2026-08-02</time ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >Úsáid dheireanach</span ></span >
<span rst-tokens-fact role ="cell" ><span rst-tokens-fact-label >In éag ar</span ><time datetime ="2026-08-11" >2026-08-11</time ></span >
<span rst-tokens-state role ="cell" ><span rst-status rst-tone ="warning" >Imithe in éag</span ></span >
</div >
</div >
<div rst-tokens-revoke >
<form method ="post" action ="/tokens/revoke-agent" >
<input type ="hidden" name ="agent" value ="Claude" >
<button rst-btn type ="submit" >Cúlghair gach ceann don ghníomhaire seo: Claude</button >
</form >
<form method ="post" action ="/tokens/revoke-all" >
<button rst-btn ="danger" type ="submit" >Cúlghair gach comhartha</button >
</form >
</div >
</div >
In aip, shroichfeadh sé seo /tokens, /tokens/revoke, /tokens/revoke-agent, /tokens/revoke-all. Anseo ní théann a naisc ná a fhoirmeacha áit ar bith.
Níl aon chomhartha ann fós
<div rst-tokens >
<section rst-box >
<form rst-form method ="post" action ="/tokens" >
<div rst-field >
<label rst-field-label for ="agent" >Ainm an ghníomhaire</label >
<input rst-input type ="text" id ="agent" name ="agent" maxlength ="40" >
</div >
<label rst-switch >
<input type ="checkbox" name ="for_self" value ="on" >
<span rst-switch-track aria-hidden ="true" ></span >
Is domsa an comhartha seo, ní do ghníomhaire
</label >
<fieldset rst-choice >
<legend >Rochtain</legend >
<div rst-choice-cards >
<label >
<input type ="radio" name ="access" value ="write" checked >
<span >
<span rst-choice-title >Léamh agus scríobh</span >
</span >
</label >
<label >
<input type ="radio" name ="access" value ="read" >
<span >
<span rst-choice-title >Léamh amháin</span >
</span >
</label >
</div >
</fieldset >
<div rst-field >
<label rst-field-label for ="expiry" >In éag ar</label >
<select rst-input ="short" id ="expiry" name ="expiry" >
<option value ="30" >30 lá</option >
<option value ="90" selected >90 lá</option >
<option value ="365" >1 bhliain</option >
<option value ="never" >Choíche</option >
</select >
</div >
<div rst-form-foot >
<button rst-btn ="primary lg" type ="submit" >Cruthaigh comhartha</button >
</div >
</form >
</section >
<div rst-empty >
<p rst-empty-body >Níl aon chomhartha ann fós.</p >
</div >
</div >
In aip, shroichfeadh sé seo /tokens. Anseo ní théann a naisc ná a fhoirmeacha áit ar bith.