GunSpec

Docs

Resource class for the documentation endpoints. Instantiated internally by the GunSpec client and exposed as client.docs.

Authentifizierung erforderlichExplorer+

Look up what the reference documents for an operation: parameters, the plan it needs, caching, every failure with its error.reason values, and the languages a sample is printed in.

getOperations(params: GetDocsOperationsParams): Promise<APIResponse<DocsOperations>>
GET/v1/docs/operations

  • stringHeadererforderlich

    Ihr API-Schlüssel. Authorization: Bearer <key> wird ebenfalls akzeptiert.

  • stringerforderlich

    The operation's path: a documented template, a concrete path or a full URL. A path that names no operation is matched as a prefix.

    Max. Länge
    300
    Beispiel
  • string

    Narrow to one HTTP method. Omitted returns every method the path answers.

    Akzeptiert
    Beispiel

  • object

    The response payload.

  • string

    exact when the path named an operation, prefix when it did not and these are the operations under it (at most 25).

  • string

    The version of this document the reference was rendered from.

  • object[]

    The matching operations.

  • string

    HTTP method.

  • string

    The documented path template.

  • string

    The operation's title in the reference.

  • string

    What the operation does, as the reference states it.

  • string

    The lowest plan that may call it: public, account (a key attached to a user account), explorer, builder, studio or enterprise.

  • string

    Whether a key is required, optional or not used (none).

  • boolean

    Whether it answers 304 Not Modified to an If-None-Match carrying the ETag it sent.

  • string

    The operation's page in the reference.

  • object[]

    Path, query and header parameters, as the reference lists them.

  • object | null

    The request body, or null for an operation that takes none.

  • object

    What success looks like.

  • object[]

    Every failure the operation documents.

  • 400VALIDATION_ERRORValidation error
  • 401UNAUTHORIZEDAPI key required
  • 403FORBIDDENValid key, not permitted
  • 404NOT_FOUNDResource not found
  • 429RATE_LIMITEDRate limit exceeded
  • 500INTERNAL_ERRORUnexpected server error

Mindeststufe
Explorer+
Monatskontingent
200/mo
Anfragerate
10/min
Tageslimit
50

Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.

Authentifizierung erforderlichExplorer+

Get the sample the reference prints for an operation in one language, exactly as printed, with the result of the last run that checked it.

getSample(params: GetDocsSampleParams): Promise<APIResponse<DocsSamples>>
GET/v1/docs/samples

  • stringHeadererforderlich

    Ihr API-Schlüssel. Authorization: Bearer <key> wird ebenfalls akzeptiert.

  • stringerforderlich

    The operation's path: a documented template, a concrete path or a full URL.

    Max. Länge
    300
    Beispiel
  • string

    The HTTP method. Needed only when the path answers more than one.

    Akzeptiert
    Beispiel
  • stringerforderlich

    curl, javascript (TypeScript with fetch), python (requests), unity, unreal, godot, or sdk-typescript / sdk-python for the SDKs.

    Akzeptiert
    Beispiel

  • object

    The response payload.

  • string

    HTTP method of the operation.

  • string

    Its documented path template.

  • string

    The lowest plan that may call it.

  • string

    The operation's page in the reference.

  • string

    The language asked for.

  • string | null

    How to fill in the key placeholder, or null for an operation that takes no key.

  • object[]

    One sample, or one per SDK method for an operation more than one method calls.

  • string

    What the sample is: the tab name, or the SDK call.

  • string

    The sample, exactly as the reference prints it.

  • object | null

    The last run that checked this sample, or null when none has.

  • string | null

    Anything to know before using it, such as why it is not executed, or null.

  • 400VALIDATION_ERRORValidation error
  • 401UNAUTHORIZEDAPI key required
  • 403FORBIDDENValid key, not permitted
  • 404NOT_FOUNDResource not found
  • 429RATE_LIMITEDRate limit exceeded
  • 500INTERNAL_ERRORUnexpected server error

Mindeststufe
Explorer+
Monatskontingent
200/mo
Anfragerate
10/min
Tageslimit
50

Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.

Authentifizierung erforderlichExplorer+

What each plan allows: requests per minute, day and month, MCP calls per day, paging depth, and how long to wait after a 429.

getLimits(): Promise<APIResponse<DocsLimits>>
GET/v1/docs/limits

  • stringHeadererforderlich

    Ihr API-Schlüssel. Authorization: Bearer <key> wird ebenfalls akzeptiert.

  • object

    The response payload.

  • object[]

    Every plan, cheapest first.

  • string

    Plan id.

  • string

    Plan name.

  • integer

    Monthly price in US cents.

  • integer

    Requests allowed per minute, per key.

  • integer

    Requests allowed per day, per key.

  • integer

    Requests included per month.

  • integer

    Calls through the hosted MCP server allowed per day, inside the daily request allowance.

  • integer | null

    The deepest page a list may be read to, or null for no limit.

  • boolean

    Whether paginated responses include the total count.

  • object

    Limits on a caller that sends no key.

  • integer

    Requests allowed per day to the endpoints that need no key.

  • integer | null

    The deepest page a list may be read to without a key.

  • object

    How fast a list may be paged through before PAGINATION_BURST is returned.

  • integer

    Pages that may be read in quick succession.

  • integer

    The window those pages are counted over.

  • object

    How long to wait after a 429.

  • integer

    The Retry-After sent with a per-minute refusal.

  • integer

    The Retry-After sent when the daily allowance is spent.

  • string[]

    The headers a key may be sent in.

  • string

    The rate limits page in the docs.

  • 400VALIDATION_ERRORValidation error
  • 401UNAUTHORIZEDAPI key required
  • 403FORBIDDENValid key, not permitted
  • 429RATE_LIMITEDRate limit exceeded
  • 500INTERNAL_ERRORUnexpected server error

Mindeststufe
Explorer+
Monatskontingent
200/mo
Anfragerate
10/min
Tageslimit
50

Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.