AgreementAccessRequest
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/agreement_access_request |
create |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
created, err := client.AgreementAccessRequest(nil).Create(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:AgreementAccessRequest():create({ organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->AgreementAccessRequest()->create(["organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.AgreementAccessRequest().create({ "organization_id": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.AgreementAccessRequest.create({ "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.AgreementAccessRequest().create({ organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|
create
POST /api/v1/organizations/{organization_id}/agreement_access_request
Operation ID: post_api_v1_organizations_organization_id_agreement_access_request.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
201: Agreement access requested; the refreshed agreements page
application/json
| Property | Type | Required | Description |
|---|---|---|---|
access_request |
object |
Yes | |
agreements |
array of object |
Yes | |
agreements[].body |
string |
Yes | Markdown text, or null until staff grant the organization access. |
agreements[].effective_on_label |
string |
Yes | |
agreements[].key |
enum: data_processing_agreement, subprocessors |
Yes | |
agreements[].summary |
string |
Yes | |
agreements[].title |
string |
Yes | |
agreements[].version |
string |
Yes | |
can_request_access |
boolean |
Yes | |
organization |
object |
Yes | |
organization.activated_products |
array of enum: transcripts, vcs |
Yes | Products this organization has activated (PRD 144). Activation is what makes a product's surfaces visible; it is neither permission nor entitlement. |
organization.agents_only |
boolean |
No | Whether this organization uses the agents-only interface; older responses may omit this value. |
organization.can_activate_products |
boolean |
Yes | Whether the current user may activate a product for this organization: the organization-admin rule the activation endpoint enforces. |
organization.created_at |
string (date-time) |
Yes | |
organization.created_at_label |
string |
Yes | |
organization.github_prs_authored_by_change_author |
boolean |
Yes | |
organization.id |
string |
Yes | |
organization.logo_url |
string |
Yes | |
organization.member_count |
integer |
Yes | |
organization.name |
string |
Yes | |
organization.pending_invitation_count |
integer |
Yes | |
organization.personal |
boolean |
Yes | |
organization.repository_count |
integer |
Yes | |
organization.role |
string |
Yes | |
organization.sandbox_region |
enum: us-was-1, us-pdx-1, eu-lon-1, eu-fra-1, auto |
Yes | |
organization.shared_agent_personal_accounts_enabled |
boolean |
No | Whether a shared agent may use one person's account for everyone who chats with it. Present only where agent integrations are on. |
organization.slug |
string |
Yes | |
organization.source_control_providers |
array of enum: github, gitlab |
No | Connected source control providers for this organization. Missing values mean no providers are known. |
organization.source_ui_enabled |
boolean |
No | Organization-scoped Source workspace rollout; missing values mean disabled. |
organization.timezone |
string |
Yes | Default IANA timezone for organization-local schedules such as nightly dreaming. |
organization.updated_at |
string (date-time) |
Yes | |
organization.updated_at_label |
string |
Yes | |
organization.verify_pr_scenario_writing_enabled |
boolean |
Yes |